aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-19 19:05:59 +0000
committerDan Gohman <gohman@apple.com>2010-04-19 19:05:59 +0000
commit60257f555b0a59ac0f04198236878cb24f113fdc (patch)
tree737df0ab77e166eff886743c8e3ded1279054d86 /lib/CodeGen/LLVMTargetMachine.cpp
parent46086310d44e564e5a025bd9a80cdec4eb053d1e (diff)
downloadexternal_llvm-60257f555b0a59ac0f04198236878cb24f113fdc.zip
external_llvm-60257f555b0a59ac0f04198236878cb24f113fdc.tar.gz
external_llvm-60257f555b0a59ac0f04198236878cb24f113fdc.tar.bz2
Code that needs a TargetMachine should have access to one directly, rather
than just getting one through a TargetLowering. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index 89b4694..331dc7d 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -248,10 +248,10 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
// pad is shared by multiple invokes and is also a target of a normal
// edge from elsewhere.
PM.add(createSjLjEHPass(getTargetLowering()));
- PM.add(createDwarfEHPass(getTargetLowering(), OptLevel==CodeGenOpt::None));
+ PM.add(createDwarfEHPass(this, OptLevel==CodeGenOpt::None));
break;
case ExceptionHandling::Dwarf:
- PM.add(createDwarfEHPass(getTargetLowering(), OptLevel==CodeGenOpt::None));
+ PM.add(createDwarfEHPass(this, OptLevel==CodeGenOpt::None));
break;
case ExceptionHandling::None:
PM.add(createLowerInvokePass(getTargetLowering()));