From 45f966d80f8d5c32b8e16a0a11073ab118948341 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 19 Dec 2006 22:17:40 +0000 Subject: switch more statistics over to STATISTIC, eliminating static ctors. Also, delete some dead ones. llvm-svn: 32694 --- llvm/lib/Transforms/Utils/LowerInvoke.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'llvm/lib/Transforms/Utils/LowerInvoke.cpp') 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 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 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 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; -- cgit v1.2.3