summaryrefslogtreecommitdiff
path: root/tools/llc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/llc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index f81495cc7e..68876ea22a 100644
--- a/tools/llc/llc.cpp
+++ b/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.