[llvm] r182317 - No need to store the TargetMachine variable in this class.
Bill Wendling
isanbard at gmail.com
Mon May 20 14:28:28 PDT 2013
Author: void
Date: Mon May 20 16:28:28 2013
New Revision: 182317
URL: http://llvm.org/viewvc/llvm-project?rev=182317&view=rev
Log:
No need to store the TargetMachine variable in this class.
Modified:
llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp?rev=182317&r1=182316&r2=182317&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp Mon May 20 16:28:28 2013
@@ -32,7 +32,6 @@ STATISTIC(NumResumesLowered, "Number of
namespace {
class DwarfEHPrepare : public FunctionPass {
- const TargetMachine *TM;
const TargetLoweringBase *TLI;
// RewindFunction - _Unwind_Resume or the target equivalent.
@@ -43,9 +42,8 @@ namespace {
public:
static char ID; // Pass identification, replacement for typeid.
- DwarfEHPrepare(const TargetMachine *tm) :
- FunctionPass(ID), TM(tm), TLI(TM->getTargetLowering()),
- RewindFunction(0) {
+ DwarfEHPrepare(const TargetMachine *TM) :
+ FunctionPass(ID), TLI(TM->getTargetLowering()), RewindFunction(0) {
initializeDominatorTreePass(*PassRegistry::getPassRegistry());
}
More information about the llvm-commits
mailing list