summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2017-01-12 16:56:18 +0000
committerDehao Chen <dehao@google.com>2017-01-12 16:56:18 +0000
commit37c79c236d900f741f3cb530f5cf98c810e52acb (patch)
tree54f9191a7451332bc9420e28533a0f5572e24a76 /clang/lib/CodeGen
parentbd3689de9119e6bd9246216548817411bc5ec5d0 (diff)
downloadbcm5719-llvm-37c79c236d900f741f3cb530f5cf98c810e52acb.tar.gz
bcm5719-llvm-37c79c236d900f741f3cb530f5cf98c810e52acb.zip
Revert r291774 which caused buildbot failure.
llvm-svn: 291775
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index b70cefa615f..d2ce6ea48e4 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -862,8 +862,7 @@ void EmitAssemblyHelper::EmitAssemblyWithNewPassManager(
}
static void runThinLTOBackend(ModuleSummaryIndex *CombinedIndex, Module *M,
- std::unique_ptr<raw_pwrite_stream> OS,
- std::string SampleProfile) {
+ std::unique_ptr<raw_pwrite_stream> OS) {
StringMap<std::map<GlobalValue::GUID, GlobalValueSummary *>>
ModuleToDefinedGVSummaries;
CombinedIndex->collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries);
@@ -931,7 +930,6 @@ static void runThinLTOBackend(ModuleSummaryIndex *CombinedIndex, Module *M,
return llvm::make_unique<lto::NativeObjectStream>(std::move(OS));
};
lto::Config Conf;
- Conf.SampleProfile = SampleProfile;
if (Error E = thinBackend(
Conf, 0, AddStream, *M, *CombinedIndex, ImportList,
ModuleToDefinedGVSummaries[M->getModuleIdentifier()], ModuleMap)) {
@@ -967,8 +965,7 @@ void clang::EmitBackendOutput(DiagnosticsEngine &Diags,
// of an error).
bool DoThinLTOBackend = CombinedIndex != nullptr;
if (DoThinLTOBackend) {
- runThinLTOBackend(CombinedIndex.get(), M, std::move(OS),
- CGOpts.SampleProfileFile);
+ runThinLTOBackend(CombinedIndex.get(), M, std::move(OS));
return;
}
}
OpenPOWER on IntegriCloud