summaryrefslogtreecommitdiffstats
path: root/llvm/tools/lto/LTOModule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/lto/LTOModule.cpp')
-rw-r--r--llvm/tools/lto/LTOModule.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/lto/LTOModule.cpp b/llvm/tools/lto/LTOModule.cpp
index 8ea680d53c5..0b737293ae2 100644
--- a/llvm/tools/lto/LTOModule.cpp
+++ b/llvm/tools/lto/LTOModule.cpp
@@ -159,7 +159,9 @@ LTOModule *LTOModule::makeLTOModule(MemoryBuffer *buffer,
Features.getDefaultSubtargetFeatures(llvm::Triple(Triple));
std::string FeatureStr = Features.getString();
std::string CPU;
- TargetMachine *target = march->createTargetMachine(Triple, CPU, FeatureStr);
+ TargetOptions Options;
+ TargetMachine *target = march->createTargetMachine(Triple, CPU, FeatureStr,
+ Options);
LTOModule *Ret = new LTOModule(m.take(), target);
if (Ret->ParseSymbols(errMsg)) {
delete Ret;
OpenPOWER on IntegriCloud