[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCBranchSelector.cpp PPCCodeEmitter.cpp
Devang Patel
dpatel at apple.com
Wed May 2 18:13:55 PDT 2007
Changes in directory llvm/lib/Target/PowerPC:
PPCBranchSelector.cpp updated: 1.44 -> 1.45
PPCCodeEmitter.cpp updated: 1.77 -> 1.78
---
Log message:
Drop 'const'
---
Diffs of the changes: (+4 -4)
PPCBranchSelector.cpp | 4 ++--
PPCCodeEmitter.cpp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
diff -u llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.44 llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.45
--- llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.44 Wed May 2 16:39:19 2007
+++ llvm/lib/Target/PowerPC/PPCBranchSelector.cpp Wed May 2 20:11:54 2007
@@ -32,7 +32,7 @@
namespace {
struct VISIBILITY_HIDDEN PPCBSel : public MachineFunctionPass {
- static const char ID;
+ static char ID;
PPCBSel() : MachineFunctionPass((intptr_t)&ID) {}
/// BlockSizes - The sizes of the basic blocks in the function.
@@ -44,7 +44,7 @@
return "PowerPC Branch Selector";
}
};
- const char PPCBSel::ID = 0;
+ char PPCBSel::ID = 0;
}
/// createPPCBranchSelectionPass - returns an instance of the Branch Selection
Index: llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp
diff -u llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.77 llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.78
--- llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.77 Wed May 2 16:39:19 2007
+++ llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp Wed May 2 20:11:54 2007
@@ -40,7 +40,7 @@
int getMachineOpValue(MachineInstr &MI, MachineOperand &MO);
public:
- static const char ID;
+ static char ID;
PPCCodeEmitter(TargetMachine &T, MachineCodeEmitter &M)
: MachineFunctionPass((intptr_t)&ID), TM(T), MCE(M) {}
@@ -64,7 +64,7 @@
///
unsigned getBinaryCodeForInstr(MachineInstr &MI);
};
- const char PPCCodeEmitter::ID = 0;
+ char PPCCodeEmitter::ID = 0;
}
/// createPPCCodeEmitterPass - Return a pass that emits the collected PPC code
More information about the llvm-commits
mailing list