diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:17:40 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:17:40 +0000 |
| commit | 45f966d80f8d5c32b8e16a0a11073ab118948341 (patch) | |
| tree | 2ce394af6abcca8a62849db5c629ca2bad019cf7 /llvm/lib/Transforms/Utils/LowerInvoke.cpp | |
| parent | 1631bcb1d43425ed03624eaa47cf4f53fe3832fd (diff) | |
| download | bcm5719-llvm-45f966d80f8d5c32b8e16a0a11073ab118948341.tar.gz bcm5719-llvm-45f966d80f8d5c32b8e16a0a11073ab118948341.zip | |
switch more statistics over to STATISTIC, eliminating static ctors. Also,
delete some dead ones.
llvm-svn: 32694
Diffstat (limited to 'llvm/lib/Transforms/Utils/LowerInvoke.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/LowerInvoke.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Utils/LowerInvoke.cpp b/llvm/lib/Transforms/Utils/LowerInvoke.cpp index 4fbd43c6f4d..e4117d5874c 100644 --- a/llvm/lib/Transforms/Utils/LowerInvoke.cpp +++ b/llvm/lib/Transforms/Utils/LowerInvoke.cpp @@ -34,6 +34,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "lowerinvoke" #include "llvm/Transforms/Scalar.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" @@ -49,14 +50,14 @@ #include <csetjmp> using namespace llvm; -namespace { - Statistic NumInvokes("lowerinvoke", "Number of invokes replaced"); - Statistic NumUnwinds("lowerinvoke", "Number of unwinds replaced"); - Statistic NumSpilled("lowerinvoke", - "Number of registers live across unwind edges"); - cl::opt<bool> ExpensiveEHSupport("enable-correct-eh-support", +STATISTIC(NumInvokes, "Number of invokes replaced"); +STATISTIC(NumUnwinds, "Number of unwinds replaced"); +STATISTIC(NumSpilled, "Number of registers live across unwind edges"); + +static cl::opt<bool> ExpensiveEHSupport("enable-correct-eh-support", cl::desc("Make the -lowerinvoke pass insert expensive, but correct, EH code")); +namespace { class VISIBILITY_HIDDEN LowerInvoke : public FunctionPass { // Used for both models. Function *WriteFn; |

