Changes in directory llvm/lib/Target/PowerPC:
PPCBranchSelector.cpp updated: 1.43 -> 1.44 PPCCodeEmitter.cpp updated: 1.76 -> 1.77 --- 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: (+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.43 llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.44 --- llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.43 Tue May 1 16:15:46 2007 +++ llvm/lib/Target/PowerPC/PPCBranchSelector.cpp Wed May 2 16:39:19 2007 @@ -32,7 +32,7 @@ namespace { struct VISIBILITY_HIDDEN PPCBSel : public MachineFunctionPass { - static const int ID; + static const 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 int PPCBSel::ID = 0; + const 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.76 llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.77 --- llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.76 Tue May 1 16:15:46 2007 +++ llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp Wed May 2 16:39:19 2007 @@ -40,7 +40,7 @@ int getMachineOpValue(MachineInstr &MI, MachineOperand &MO); public: - static const int ID; + static const char ID; PPCCodeEmitter(TargetMachine &T, MachineCodeEmitter &M) : MachineFunctionPass((intptr_t)&ID), TM(T), MCE(M) {} @@ -64,7 +64,7 @@ /// unsigned getBinaryCodeForInstr(MachineInstr &MI); }; - const int PPCCodeEmitter::ID = 0; + const char PPCCodeEmitter::ID = 0; } /// createPPCCodeEmitterPass - Return a pass that emits the collected PPC code _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits