[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaBranchSelector.cpp AlphaCodeEmitter.cpp AlphaLLRP.cpp
Devang Patel
dpatel at apple.com
Wed May 2 14:41:35 PDT 2007
Changes in directory llvm/lib/Target/Alpha:
AlphaBranchSelector.cpp updated: 1.3 -> 1.4
AlphaCodeEmitter.cpp updated: 1.22 -> 1.23
AlphaLLRP.cpp updated: 1.9 -> 1.10
---
Log message:
Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces
static const int, which defauts PassID based pass identification.
---
Diffs of the changes: (+6 -6)
AlphaBranchSelector.cpp | 4 ++--
AlphaCodeEmitter.cpp | 4 ++--
AlphaLLRP.cpp | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaBranchSelector.cpp
diff -u llvm/lib/Target/Alpha/AlphaBranchSelector.cpp:1.3 llvm/lib/Target/Alpha/AlphaBranchSelector.cpp:1.4
--- llvm/lib/Target/Alpha/AlphaBranchSelector.cpp:1.3 Tue May 1 16:15:46 2007
+++ llvm/lib/Target/Alpha/AlphaBranchSelector.cpp Wed May 2 16:39:19 2007
@@ -22,7 +22,7 @@
namespace {
struct VISIBILITY_HIDDEN AlphaBSel : public MachineFunctionPass {
- static const int ID;
+ static const char ID;
AlphaBSel() : MachineFunctionPass((intptr_t)&ID) {}
virtual bool runOnMachineFunction(MachineFunction &Fn);
@@ -31,7 +31,7 @@
return "Alpha Branch Selection";
}
};
- const int AlphaBSel::ID = 0;
+ const char AlphaBSel::ID = 0;
}
/// createAlphaBranchSelectionPass - returns an instance of the Branch Selection
Index: llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
diff -u llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.22 llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.23
--- llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.22 Tue May 1 16:15:46 2007
+++ llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp Wed May 2 16:39:19 2007
@@ -36,7 +36,7 @@
int getMachineOpValue(MachineInstr &MI, MachineOperand &MO);
public:
- static const int ID;
+ static const char ID;
explicit AlphaCodeEmitter(TargetMachine &tm, MachineCodeEmitter &mce)
: MachineFunctionPass((intptr_t)&ID), II(0), TM(tm), MCE(mce) {}
AlphaCodeEmitter(TargetMachine &tm, MachineCodeEmitter &mce,
@@ -61,7 +61,7 @@
void emitBasicBlock(MachineBasicBlock &MBB);
};
- const int AlphaCodeEmitter::ID = 0;
+ const char AlphaCodeEmitter::ID = 0;
}
/// createAlphaCodeEmitterPass - Return a pass that emits the collected Alpha code
Index: llvm/lib/Target/Alpha/AlphaLLRP.cpp
diff -u llvm/lib/Target/Alpha/AlphaLLRP.cpp:1.9 llvm/lib/Target/Alpha/AlphaLLRP.cpp:1.10
--- llvm/lib/Target/Alpha/AlphaLLRP.cpp:1.9 Tue May 1 16:15:46 2007
+++ llvm/lib/Target/Alpha/AlphaLLRP.cpp Wed May 2 16:39:19 2007
@@ -37,7 +37,7 @@
///
AlphaTargetMachine &TM;
- static const int ID;
+ static const char ID;
AlphaLLRPPass(AlphaTargetMachine &tm)
: MachineFunctionPass((intptr_t)&ID), TM(tm) { }
@@ -154,7 +154,7 @@
return Changed;
}
};
- const int AlphaLLRPPass::ID = 0;
+ const char AlphaLLRPPass::ID = 0;
} // end of anonymous namespace
FunctionPass *llvm::createAlphaLLRPPass(AlphaTargetMachine &tm) {
More information about the llvm-commits
mailing list