[llvm-commits] CVS: llvm/include/llvm/CodeGen/AsmPrinter.h LiveIntervalAnalysis.h LiveVariables.h MachineModuleInfo.h SelectionDAGISel.h
Devang Patel
dpatel at apple.com
Wed May 2 14:41:27 PDT 2007
Changes in directory llvm/include/llvm/CodeGen:
AsmPrinter.h updated: 1.64 -> 1.65
LiveIntervalAnalysis.h updated: 1.81 -> 1.82
LiveVariables.h updated: 1.42 -> 1.43
MachineModuleInfo.h updated: 1.8 -> 1.9
SelectionDAGISel.h updated: 1.38 -> 1.39
---
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: (+5 -5)
AsmPrinter.h | 2 +-
LiveIntervalAnalysis.h | 2 +-
LiveVariables.h | 2 +-
MachineModuleInfo.h | 2 +-
SelectionDAGISel.h | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
Index: llvm/include/llvm/CodeGen/AsmPrinter.h
diff -u llvm/include/llvm/CodeGen/AsmPrinter.h:1.64 llvm/include/llvm/CodeGen/AsmPrinter.h:1.65
--- llvm/include/llvm/CodeGen/AsmPrinter.h:1.64 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/CodeGen/AsmPrinter.h Wed May 2 16:39:18 2007
@@ -34,7 +34,7 @@
/// AsmPrinter - This class is intended to be used as a driving class for all
/// asm writers.
class AsmPrinter : public MachineFunctionPass {
- static const int ID;
+ static const char ID;
/// FunctionNumber - This provides a unique ID for each function emitted in
/// this translation unit. It is autoincremented by SetupMachineFunction,
Index: llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff -u llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.81 llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.82
--- llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.81 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h Wed May 2 16:39:18 2007
@@ -65,7 +65,7 @@
BitVector JoinedLIs;
public:
- static const int ID; // Pass identifcation, replacement for typeid
+ static const char ID; // Pass identifcation, replacement for typeid
LiveIntervals() : MachineFunctionPass((intptr_t)&ID) {}
struct CopyRec {
Index: llvm/include/llvm/CodeGen/LiveVariables.h
diff -u llvm/include/llvm/CodeGen/LiveVariables.h:1.42 llvm/include/llvm/CodeGen/LiveVariables.h:1.43
--- llvm/include/llvm/CodeGen/LiveVariables.h:1.42 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/CodeGen/LiveVariables.h Wed May 2 16:39:18 2007
@@ -40,7 +40,7 @@
class LiveVariables : public MachineFunctionPass {
public:
- static const int ID; // Pass identifcation, replacement for typeid
+ static const char ID; // Pass identifcation, replacement for typeid
LiveVariables() : MachineFunctionPass((intptr_t)&ID) {}
/// VarInfo - This represents the regions where a virtual register is live in
Index: llvm/include/llvm/CodeGen/MachineModuleInfo.h
diff -u llvm/include/llvm/CodeGen/MachineModuleInfo.h:1.8 llvm/include/llvm/CodeGen/MachineModuleInfo.h:1.9
--- llvm/include/llvm/CodeGen/MachineModuleInfo.h:1.8 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/CodeGen/MachineModuleInfo.h Wed May 2 16:39:18 2007
@@ -1022,7 +1022,7 @@
std::vector<GlobalVariable *> TypeInfos;
public:
- static const int ID; // Pass identifcation, replacement for typeid
+ static const char ID; // Pass identifcation, replacement for typeid
MachineModuleInfo();
~MachineModuleInfo();
Index: llvm/include/llvm/CodeGen/SelectionDAGISel.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.38 llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.39
--- llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.38 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/CodeGen/SelectionDAGISel.h Wed May 2 16:39:18 2007
@@ -41,7 +41,7 @@
MachineBasicBlock *BB;
std::vector<SDNode*> TopOrder;
unsigned DAGSize;
- static const int ID;
+ static const char ID;
explicit SelectionDAGISel(TargetLowering &tli) :
FunctionPass((intptr_t)&ID), TLI(tli), DAGSize(0) {}
More information about the llvm-commits
mailing list