summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/llc/llc.cpp4
-rw-r--r--tools/opt/opt.cpp4
2 files changed, 4 insertions, 4 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.
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 9c9e394043..c2987f19ed 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -658,8 +658,8 @@ int main(int argc, char **argv) {
std::auto_ptr<TargetMachine> TM(Machine);
if (TM.get()) {
- Passes.add(new TargetTransformInfo(TM->getScalarTargetTransformInfo(),
- TM->getVectorTargetTransformInfo()));
+ Passes.add(createNoTTIPass(TM->getScalarTargetTransformInfo(),
+ TM->getVectorTargetTransformInfo()));
}
OwningPtr<FunctionPassManager> FPasses;