projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use PassInfo* as a type identifier for passes. Instead, use the address of...
[oota-llvm.git]
/
lib
/
CodeGen
/
StackSlotColoring.cpp
diff --git
a/lib/CodeGen/StackSlotColoring.cpp
b/lib/CodeGen/StackSlotColoring.cpp
index eff3c33e3daa0f153f21a146808233f80e533245..dab6bc3924d64c224952d5e09eb559d335af5c4e 100644
(file)
--- a/
lib/CodeGen/StackSlotColoring.cpp
+++ b/
lib/CodeGen/StackSlotColoring.cpp
@@
-95,9
+95,9
@@
namespace {
public:
static char ID; // Pass identification
StackSlotColoring() :
public:
static char ID; // Pass identification
StackSlotColoring() :
- MachineFunctionPass(
&
ID), ColorWithRegs(false), NextColor(-1) {}
+ MachineFunctionPass(ID), ColorWithRegs(false), NextColor(-1) {}
StackSlotColoring(bool RegColor) :
StackSlotColoring(bool RegColor) :
- MachineFunctionPass(
&
ID), ColorWithRegs(RegColor), NextColor(-1) {}
+ MachineFunctionPass(ID), ColorWithRegs(RegColor), NextColor(-1) {}
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesCFG();
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesCFG();
@@
-146,8
+146,8
@@
namespace {
char StackSlotColoring::ID = 0;
char StackSlotColoring::ID = 0;
-static RegisterPass<StackSlotColoring>
-
X("stack-slot-coloring", "Stack Slot Coloring"
);
+INITIALIZE_PASS(StackSlotColoring, "stack-slot-coloring",
+
"Stack Slot Coloring", false, false
);
FunctionPass *llvm::createStackSlotColoringPass(bool RegColor) {
return new StackSlotColoring(RegColor);
FunctionPass *llvm::createStackSlotColoringPass(bool RegColor) {
return new StackSlotColoring(RegColor);