summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/PruneEH.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-19 22:09:18 +0000
committerChris Lattner <sabre@nondot.org>2006-12-19 22:09:18 +0000
commit86453c52ba02e743d29c08456e51006500041456 (patch)
treecdc95741b806ce83c1cd6da867e1f5157610d109 /lib/Transforms/IPO/PruneEH.cpp
parent438e08e35796ca2e4d2be71185b34e11c2d12c80 (diff)
downloadllvm-86453c52ba02e743d29c08456e51006500041456.tar.gz
llvm-86453c52ba02e743d29c08456e51006500041456.tar.bz2
llvm-86453c52ba02e743d29c08456e51006500041456.tar.xz
Eliminate static ctors due to Statistic objects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/PruneEH.cpp')
-rw-r--r--lib/Transforms/IPO/PruneEH.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp
index 1dec7d7047..14daf13ecd 100644
--- a/lib/Transforms/IPO/PruneEH.cpp
+++ b/lib/Transforms/IPO/PruneEH.cpp
@@ -14,6 +14,7 @@
//
//===----------------------------------------------------------------------===//
+#define DEBUG_TYPE "prune-eh"
#include "llvm/Transforms/IPO.h"
#include "llvm/CallGraphSCCPass.h"
#include "llvm/Constants.h"
@@ -27,10 +28,10 @@
#include <algorithm>
using namespace llvm;
-namespace {
- Statistic NumRemoved("prune-eh", "Number of invokes removed");
- Statistic NumUnreach("prune-eh", "Number of noreturn calls optimized");
+STATISTIC(NumRemoved, "Number of invokes removed");
+STATISTIC(NumUnreach, "Number of noreturn calls optimized");
+namespace {
struct PruneEH : public CallGraphSCCPass {
/// DoesNotUnwind - This set contains all of the functions which we have
/// determined cannot unwind.