v.g.vassilev created this revision. Herald added a subscriber: mehdi_amini.
Recent changes within GCC 7 libstdc++ caused build errors inside embedded LLVM. Patch by David Abdurachmanov! Repository: rL LLVM https://reviews.llvm.org/D33467 Files: lib/Transforms/IPO/PassManagerBuilder.cpp lib/Transforms/Instrumentation/PGOInstrumentation.cpp Index: lib/Transforms/Instrumentation/PGOInstrumentation.cpp =================================================================== --- lib/Transforms/Instrumentation/PGOInstrumentation.cpp +++ lib/Transforms/Instrumentation/PGOInstrumentation.cpp @@ -319,7 +319,7 @@ PGOInstrumentationUseLegacyPass(std::string Filename = "") : ModulePass(ID), ProfileFileName(std::move(Filename)) { if (!PGOTestProfileFile.empty()) - ProfileFileName = PGOTestProfileFile; + ProfileFileName = PGOTestProfileFile.getValue(); initializePGOInstrumentationUseLegacyPassPass( *PassRegistry::getPassRegistry()); } @@ -1375,7 +1375,7 @@ PGOInstrumentationUse::PGOInstrumentationUse(std::string Filename) : ProfileFileName(std::move(Filename)) { if (!PGOTestProfileFile.empty()) - ProfileFileName = PGOTestProfileFile; + ProfileFileName = PGOTestProfileFile.getValue(); } PreservedAnalyses PGOInstrumentationUse::run(Module &M, Index: lib/Transforms/IPO/PassManagerBuilder.cpp =================================================================== --- lib/Transforms/IPO/PassManagerBuilder.cpp +++ lib/Transforms/IPO/PassManagerBuilder.cpp @@ -170,8 +170,8 @@ MergeFunctions = false; PrepareForLTO = false; EnablePGOInstrGen = RunPGOInstrGen; - PGOInstrGen = PGOOutputFile; - PGOInstrUse = RunPGOInstrUse; + PGOInstrGen = RunPGOInstrGen.getValue(); + PGOInstrUse = RunPGOInstrUse.getValue(); PrepareForThinLTO = EnablePrepareForThinLTO; PerformThinLTO = false; DivergentTarget = false;
Index: lib/Transforms/Instrumentation/PGOInstrumentation.cpp =================================================================== --- lib/Transforms/Instrumentation/PGOInstrumentation.cpp +++ lib/Transforms/Instrumentation/PGOInstrumentation.cpp @@ -319,7 +319,7 @@ PGOInstrumentationUseLegacyPass(std::string Filename = "") : ModulePass(ID), ProfileFileName(std::move(Filename)) { if (!PGOTestProfileFile.empty()) - ProfileFileName = PGOTestProfileFile; + ProfileFileName = PGOTestProfileFile.getValue(); initializePGOInstrumentationUseLegacyPassPass( *PassRegistry::getPassRegistry()); } @@ -1375,7 +1375,7 @@ PGOInstrumentationUse::PGOInstrumentationUse(std::string Filename) : ProfileFileName(std::move(Filename)) { if (!PGOTestProfileFile.empty()) - ProfileFileName = PGOTestProfileFile; + ProfileFileName = PGOTestProfileFile.getValue(); } PreservedAnalyses PGOInstrumentationUse::run(Module &M, Index: lib/Transforms/IPO/PassManagerBuilder.cpp =================================================================== --- lib/Transforms/IPO/PassManagerBuilder.cpp +++ lib/Transforms/IPO/PassManagerBuilder.cpp @@ -170,8 +170,8 @@ MergeFunctions = false; PrepareForLTO = false; EnablePGOInstrGen = RunPGOInstrGen; - PGOInstrGen = PGOOutputFile; - PGOInstrUse = RunPGOInstrUse; + PGOInstrGen = RunPGOInstrGen.getValue(); + PGOInstrUse = RunPGOInstrUse.getValue(); PrepareForThinLTO = EnablePrepareForThinLTO; PerformThinLTO = false; DivergentTarget = false;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits