projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a typo that's causing a missing kill marker.
[oota-llvm.git]
/
lib
/
CodeGen
/
UnreachableBlockElim.cpp
diff --git
a/lib/CodeGen/UnreachableBlockElim.cpp
b/lib/CodeGen/UnreachableBlockElim.cpp
index 1d4e5304f3b08313d6488fb571b24b7835a9a001..0a611ab9bb35a05d67b0a9682486a3eeddfed940 100644
(file)
--- a/
lib/CodeGen/UnreachableBlockElim.cpp
+++ b/
lib/CodeGen/UnreachableBlockElim.cpp
@@
-27,14
+27,19
@@
#include "llvm/Pass.h"
#include "llvm/Type.h"
#include "llvm/Support/CFG.h"
#include "llvm/Pass.h"
#include "llvm/Type.h"
#include "llvm/Support/CFG.h"
+#include "llvm/Support/Compiler.h"
#include "llvm/ADT/DepthFirstIterator.h"
using namespace llvm;
namespace {
#include "llvm/ADT/DepthFirstIterator.h"
using namespace llvm;
namespace {
- class UnreachableBlockElim : public FunctionPass {
+ class
VISIBILITY_HIDDEN
UnreachableBlockElim : public FunctionPass {
virtual bool runOnFunction(Function &F);
virtual bool runOnFunction(Function &F);
+ public:
+ static char ID; // Pass identification, replacement for typeid
+ UnreachableBlockElim() : FunctionPass((intptr_t)&ID) {}
};
};
- RegisterOpt<UnreachableBlockElim>
+ char UnreachableBlockElim::ID = 0;
+ RegisterPass<UnreachableBlockElim>
X("unreachableblockelim", "Remove unreachable blocks from the CFG");
}
X("unreachableblockelim", "Remove unreachable blocks from the CFG");
}