diff options
Diffstat (limited to 'llvm/tools/llc/llc.cpp')
-rw-r--r-- | llvm/tools/llc/llc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp index f81495cc7ea..68876ea22a2 100644 --- a/llvm/tools/llc/llc.cpp +++ b/llvm/tools/llc/llc.cpp @@ -321,8 +321,8 @@ static int compileModule(char **argv, LLVMContext &Context) { PM.add(TLI); if (target.get()) { - PM.add(new TargetTransformInfo(target->getScalarTargetTransformInfo(), - target->getVectorTargetTransformInfo())); + PM.add(createNoTTIPass(target->getScalarTargetTransformInfo(), + target->getVectorTargetTransformInfo())); } // Add the target data from the target machine, if it exists, or the module. |