diff options
| author | Devang Patel <dpatel@apple.com> | 2007-05-01 21:15:47 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2007-05-01 21:15:47 +0000 |
| commit | 09f162ca6a10446d6377b957f3a58ac92ce38306 (patch) | |
| tree | b41e816449956582e447ab616707e1afbf1a88fe /llvm/lib/Transforms/Utils/LowerInvoke.cpp | |
| parent | a612049dd849d1e659eeaeefbcf82147af7f669f (diff) | |
| download | bcm5719-llvm-09f162ca6a10446d6377b957f3a58ac92ce38306.tar.gz bcm5719-llvm-09f162ca6a10446d6377b957f3a58ac92ce38306.zip | |
Do not use typeinfo to identify pass in pass manager.
llvm-svn: 36632
Diffstat (limited to 'llvm/lib/Transforms/Utils/LowerInvoke.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/LowerInvoke.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LowerInvoke.cpp b/llvm/lib/Transforms/Utils/LowerInvoke.cpp index e0332d28f72..3f8d06f31aa 100644 --- a/llvm/lib/Transforms/Utils/LowerInvoke.cpp +++ b/llvm/lib/Transforms/Utils/LowerInvoke.cpp @@ -75,7 +75,9 @@ namespace { const TargetLowering *TLI; public: - LowerInvoke(const TargetLowering *tli = NULL) : TLI(tli) { } + static const int ID; // Pass identifcation, replacement for typeid + LowerInvoke(const TargetLowering *tli = NULL) : FunctionPass((intptr_t)&ID), + TLI(tli) { } bool doInitialization(Module &M); bool runOnFunction(Function &F); @@ -97,6 +99,7 @@ namespace { bool insertExpensiveEHSupport(Function &F); }; + const int LowerInvoke::ID = 0; RegisterPass<LowerInvoke> X("lowerinvoke", "Lower invoke and unwind, for unwindless code generators"); } |

