Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.162 -> 1.163 BranchFolding.cpp updated: 1.48 -> 1.49 ELFWriter.cpp updated: 1.40 -> 1.41 ELFWriter.h updated: 1.3 -> 1.4 LiveIntervalAnalysis.cpp updated: 1.242 -> 1.243 LiveVariables.cpp updated: 1.81 -> 1.82 MachOWriter.cpp updated: 1.34 -> 1.35 MachOWriter.h updated: 1.5 -> 1.6 MachineFunction.cpp updated: 1.113 -> 1.114 MachineModuleInfo.cpp updated: 1.8 -> 1.9 PHIElimination.cpp updated: 1.59 -> 1.60 PrologEpilogInserter.cpp updated: 1.86 -> 1.87 RegAllocLinearScan.cpp updated: 1.147 -> 1.148 RegAllocLocal.cpp updated: 1.104 -> 1.105 RegAllocSimple.cpp updated: 1.85 -> 1.86 TwoAddressInstructionPass.cpp updated: 1.49 -> 1.50 UnreachableBlockElim.cpp updated: 1.11 -> 1.12 --- Log message: Drop 'const' --- Diffs of the changes: (+30 -30) AsmPrinter.cpp | 2 +- BranchFolding.cpp | 4 ++-- ELFWriter.cpp | 2 +- ELFWriter.h | 2 +- LiveIntervalAnalysis.cpp | 2 +- LiveVariables.cpp | 2 +- MachOWriter.cpp | 2 +- MachOWriter.h | 2 +- MachineFunction.cpp | 8 ++++---- MachineModuleInfo.cpp | 6 +++--- PHIElimination.cpp | 4 ++-- PrologEpilogInserter.cpp | 4 ++-- RegAllocLinearScan.cpp | 4 ++-- RegAllocLocal.cpp | 4 ++-- RegAllocSimple.cpp | 4 ++-- TwoAddressInstructionPass.cpp | 4 ++-- UnreachableBlockElim.cpp | 4 ++-- 17 files changed, 30 insertions(+), 30 deletions(-) Index: llvm/lib/CodeGen/AsmPrinter.cpp diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.162 llvm/lib/CodeGen/AsmPrinter.cpp:1.163 --- llvm/lib/CodeGen/AsmPrinter.cpp:1.162 Wed May 2 16:39:18 2007 +++ llvm/lib/CodeGen/AsmPrinter.cpp Wed May 2 20:11:53 2007 @@ -32,7 +32,7 @@ static cl::opt<bool> AsmVerbose("asm-verbose", cl::Hidden, cl::desc("Add comments to directives.")); -const char AsmPrinter::ID = 0; +char AsmPrinter::ID = 0; AsmPrinter::AsmPrinter(std::ostream &o, TargetMachine &tm, const TargetAsmInfo *T) : MachineFunctionPass((intptr_t)&ID), FunctionNumber(0), O(o), TM(tm), TAI(T) Index: llvm/lib/CodeGen/BranchFolding.cpp diff -u llvm/lib/CodeGen/BranchFolding.cpp:1.48 llvm/lib/CodeGen/BranchFolding.cpp:1.49 --- llvm/lib/CodeGen/BranchFolding.cpp:1.48 Wed May 2 16:39:18 2007 +++ llvm/lib/CodeGen/BranchFolding.cpp Wed May 2 20:11:53 2007 @@ -39,7 +39,7 @@ namespace { struct BranchFolder : public MachineFunctionPass { - static const char ID; + static char ID; BranchFolder() : MachineFunctionPass((intptr_t)&ID) {} virtual bool runOnMachineFunction(MachineFunction &MF); @@ -67,7 +67,7 @@ MachineBasicBlock *TBB, MachineBasicBlock *FBB, const std::vector<MachineOperand> &Cond); }; - const char BranchFolder::ID = 0; + char BranchFolder::ID = 0; } FunctionPass *llvm::createBranchFoldingPass() { return new BranchFolder(); } Index: llvm/lib/CodeGen/ELFWriter.cpp diff -u llvm/lib/CodeGen/ELFWriter.cpp:1.40 llvm/lib/CodeGen/ELFWriter.cpp:1.41 --- llvm/lib/CodeGen/ELFWriter.cpp:1.40 Wed May 2 16:39:18 2007 +++ llvm/lib/CodeGen/ELFWriter.cpp Wed May 2 20:11:53 2007 @@ -47,7 +47,7 @@ #include <list> using namespace llvm; -const char ELFWriter::ID = 0; +char ELFWriter::ID = 0; /// AddELFWriter - Concrete function to add the ELF writer to the function pass /// manager. MachineCodeEmitter *llvm::AddELFWriter(FunctionPassManager &FPM, Index: llvm/lib/CodeGen/ELFWriter.h diff -u llvm/lib/CodeGen/ELFWriter.h:1.3 llvm/lib/CodeGen/ELFWriter.h:1.4 --- llvm/lib/CodeGen/ELFWriter.h:1.3 Wed May 2 16:39:18 2007 +++ llvm/lib/CodeGen/ELFWriter.h Wed May 2 20:11:53 2007 @@ -30,7 +30,7 @@ class ELFWriter : public MachineFunctionPass { friend class ELFCodeEmitter; public: - static const char ID; + static char ID; MachineCodeEmitter &getMachineCodeEmitter() const { return *(MachineCodeEmitter*)MCE; Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.242 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.243 --- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.242 Wed May 2 16:39:18 2007 +++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp Wed May 2 20:11:53 2007 @@ -44,7 +44,7 @@ STATISTIC(numFolded , "Number of loads/stores folded into instructions"); STATISTIC(numAborts , "Number of times interval joining aborted"); -const char LiveIntervals::ID = 0; +char LiveIntervals::ID = 0; namespace { RegisterPass<LiveIntervals> X("liveintervals", "Live Interval Analysis"); Index: llvm/lib/CodeGen/LiveVariables.cpp diff -u llvm/lib/CodeGen/LiveVariables.cpp:1.81 llvm/lib/CodeGen/LiveVariables.cpp:1.82 --- llvm/lib/CodeGen/LiveVariables.cpp:1.81 Wed May 2 16:39:18 2007 +++ llvm/lib/CodeGen/LiveVariables.cpp Wed May 2 20:11:53 2007 @@ -37,7 +37,7 @@ #include <algorithm> using namespace llvm; -const char LiveVariables::ID = 0; +char LiveVariables::ID = 0; static RegisterPass<LiveVariables> X("livevars", "Live Variable Analysis"); void LiveVariables::VarInfo::dump() const { Index: llvm/lib/CodeGen/MachOWriter.cpp diff -u llvm/lib/CodeGen/MachOWriter.cpp:1.34 llvm/lib/CodeGen/MachOWriter.cpp:1.35 --- llvm/lib/CodeGen/MachOWriter.cpp:1.34 Wed May 2 16:39:19 2007 +++ llvm/lib/CodeGen/MachOWriter.cpp Wed May 2 20:11:53 2007 @@ -317,7 +317,7 @@ // MachOWriter Implementation //===----------------------------------------------------------------------===// -const char MachOWriter::ID = 0; +char MachOWriter::ID = 0; MachOWriter::MachOWriter(std::ostream &o, TargetMachine &tm) : MachineFunctionPass((intptr_t)&ID), O(o), TM(tm) { is64Bit = TM.getTargetData()->getPointerSizeInBits() == 64; Index: llvm/lib/CodeGen/MachOWriter.h diff -u llvm/lib/CodeGen/MachOWriter.h:1.5 llvm/lib/CodeGen/MachOWriter.h:1.6 --- llvm/lib/CodeGen/MachOWriter.h:1.5 Wed May 2 16:39:19 2007 +++ llvm/lib/CodeGen/MachOWriter.h Wed May 2 20:11:53 2007 @@ -84,7 +84,7 @@ class MachOWriter : public MachineFunctionPass { friend class MachOCodeEmitter; public: - static const char ID; + static char ID; MachineCodeEmitter &getMachineCodeEmitter() const { return *(MachineCodeEmitter*)MCE; } Index: llvm/lib/CodeGen/MachineFunction.cpp diff -u llvm/lib/CodeGen/MachineFunction.cpp:1.113 llvm/lib/CodeGen/MachineFunction.cpp:1.114 --- llvm/lib/CodeGen/MachineFunction.cpp:1.113 Wed May 2 16:39:19 2007 +++ llvm/lib/CodeGen/MachineFunction.cpp Wed May 2 20:11:53 2007 @@ -44,7 +44,7 @@ namespace { struct VISIBILITY_HIDDEN Printer : public MachineFunctionPass { - static const char ID; + static char ID; std::ostream *OS; const std::string Banner; @@ -64,7 +64,7 @@ return false; } }; - const char Printer::ID = 0; + char Printer::ID = 0; } /// Returns a newly-created MachineFunction Printer pass. The default output @@ -77,7 +77,7 @@ namespace { struct VISIBILITY_HIDDEN Deleter : public MachineFunctionPass { - static const char ID; + static char ID; Deleter() : MachineFunctionPass((intptr_t)&ID) {} const char *getPassName() const { return "Machine Code Deleter"; } @@ -88,7 +88,7 @@ return true; } }; - const char Deleter::ID = 0; + char Deleter::ID = 0; } /// MachineCodeDeletion Pass - This pass deletes all of the machine code for Index: llvm/lib/CodeGen/MachineModuleInfo.cpp diff -u llvm/lib/CodeGen/MachineModuleInfo.cpp:1.8 llvm/lib/CodeGen/MachineModuleInfo.cpp:1.9 --- llvm/lib/CodeGen/MachineModuleInfo.cpp:1.8 Wed May 2 16:39:19 2007 +++ llvm/lib/CodeGen/MachineModuleInfo.cpp Wed May 2 20:11:53 2007 @@ -30,7 +30,7 @@ namespace { RegisterPass<MachineModuleInfo> X("machinemoduleinfo", "Module Information"); } -const char MachineModuleInfo::ID = 0; +char MachineModuleInfo::ID = 0; //===----------------------------------------------------------------------===// @@ -1751,14 +1751,14 @@ namespace llvm { struct DebugLabelFolder : public MachineFunctionPass { - static const char ID; + static char ID; DebugLabelFolder() : MachineFunctionPass((intptr_t)&ID) {} virtual bool runOnMachineFunction(MachineFunction &MF); virtual const char *getPassName() const { return "Label Folder"; } }; -const char DebugLabelFolder::ID = 0; +char DebugLabelFolder::ID = 0; bool DebugLabelFolder::runOnMachineFunction(MachineFunction &MF) { // Get machine module info. Index: llvm/lib/CodeGen/PHIElimination.cpp diff -u llvm/lib/CodeGen/PHIElimination.cpp:1.59 llvm/lib/CodeGen/PHIElimination.cpp:1.60 --- llvm/lib/CodeGen/PHIElimination.cpp:1.59 Wed May 2 16:39:19 2007 +++ llvm/lib/CodeGen/PHIElimination.cpp Wed May 2 20:11:53 2007 @@ -33,7 +33,7 @@ namespace { struct VISIBILITY_HIDDEN PNE : public MachineFunctionPass { - static const char ID; // Pass identifcation, replacement for typeid + static char ID; // Pass identifcation, replacement for typeid PNE() : MachineFunctionPass((intptr_t)&ID) {} bool runOnMachineFunction(MachineFunction &Fn) { @@ -76,7 +76,7 @@ VRegPHIUse VRegPHIUseCount; }; - const char PNE::ID = 0; + char PNE::ID = 0; RegisterPass<PNE> X("phi-node-elimination", "Eliminate PHI nodes for register allocation"); } Index: llvm/lib/CodeGen/PrologEpilogInserter.cpp diff -u llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.86 llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.87 --- llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.86 Wed May 2 16:39:19 2007 +++ llvm/lib/CodeGen/PrologEpilogInserter.cpp Wed May 2 20:11:53 2007 @@ -32,7 +32,7 @@ namespace { struct VISIBILITY_HIDDEN PEI : public MachineFunctionPass { - static const char ID; + static char ID; PEI() : MachineFunctionPass((intptr_t)&ID) {} const char *getPassName() const { @@ -101,7 +101,7 @@ void replaceFrameIndices(MachineFunction &Fn); void insertPrologEpilogCode(MachineFunction &Fn); }; - const char PEI::ID = 0; + char PEI::ID = 0; } Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.147 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.148 --- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.147 Wed May 2 16:39:19 2007 +++ llvm/lib/CodeGen/RegAllocLinearScan.cpp Wed May 2 20:11:53 2007 @@ -48,7 +48,7 @@ static unsigned numIntervals = 0; struct VISIBILITY_HIDDEN RA : public MachineFunctionPass { - static const char ID; + static char ID; RA() : MachineFunctionPass((intptr_t)&ID) {} typedef std::pair<LiveInterval*, LiveInterval::iterator> IntervalPtr; @@ -149,7 +149,7 @@ } } }; - const char RA::ID = 0; + char RA::ID = 0; } void RA::ComputeRelatedRegClasses() { Index: llvm/lib/CodeGen/RegAllocLocal.cpp diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.104 llvm/lib/CodeGen/RegAllocLocal.cpp:1.105 --- llvm/lib/CodeGen/RegAllocLocal.cpp:1.104 Wed May 2 16:39:19 2007 +++ llvm/lib/CodeGen/RegAllocLocal.cpp Wed May 2 20:11:53 2007 @@ -44,7 +44,7 @@ class VISIBILITY_HIDDEN RA : public MachineFunctionPass { public: - static const char ID; + static char ID; RA() : MachineFunctionPass((intptr_t)&ID) {} private: const TargetMachine *TM; @@ -228,7 +228,7 @@ void reloadPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator &I, unsigned PhysReg); }; - const char RA::ID = 0; + char RA::ID = 0; } /// getStackSpaceFor - This allocates space for the specified virtual register Index: llvm/lib/CodeGen/RegAllocSimple.cpp diff -u llvm/lib/CodeGen/RegAllocSimple.cpp:1.85 llvm/lib/CodeGen/RegAllocSimple.cpp:1.86 --- llvm/lib/CodeGen/RegAllocSimple.cpp:1.85 Wed May 2 16:39:19 2007 +++ llvm/lib/CodeGen/RegAllocSimple.cpp Wed May 2 20:11:53 2007 @@ -39,7 +39,7 @@ class VISIBILITY_HIDDEN RegAllocSimple : public MachineFunctionPass { public: - static const char ID; + static char ID; RegAllocSimple() : MachineFunctionPass((intptr_t)&ID) {} private: MachineFunction *MF; @@ -94,7 +94,7 @@ void spillVirtReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned VirtReg, unsigned PhysReg); }; - const char RegAllocSimple::ID = 0; + char RegAllocSimple::ID = 0; } /// getStackSpaceFor - This allocates space for the specified virtual Index: llvm/lib/CodeGen/TwoAddressInstructionPass.cpp diff -u llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.49 llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.50 --- llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.49 Wed May 2 16:39:19 2007 +++ llvm/lib/CodeGen/TwoAddressInstructionPass.cpp Wed May 2 20:11:53 2007 @@ -50,7 +50,7 @@ namespace { struct VISIBILITY_HIDDEN TwoAddressInstructionPass : public MachineFunctionPass { - static const char ID; // Pass identifcation, replacement for typeid + static char ID; // Pass identifcation, replacement for typeid TwoAddressInstructionPass() : MachineFunctionPass((intptr_t)&ID) {} virtual void getAnalysisUsage(AnalysisUsage &AU) const; @@ -59,7 +59,7 @@ bool runOnMachineFunction(MachineFunction&); }; - const char TwoAddressInstructionPass::ID = 0; + char TwoAddressInstructionPass::ID = 0; RegisterPass<TwoAddressInstructionPass> X("twoaddressinstruction", "Two-Address instruction pass"); } Index: llvm/lib/CodeGen/UnreachableBlockElim.cpp diff -u llvm/lib/CodeGen/UnreachableBlockElim.cpp:1.11 llvm/lib/CodeGen/UnreachableBlockElim.cpp:1.12 --- llvm/lib/CodeGen/UnreachableBlockElim.cpp:1.11 Wed May 2 16:39:19 2007 +++ llvm/lib/CodeGen/UnreachableBlockElim.cpp Wed May 2 20:11:53 2007 @@ -35,10 +35,10 @@ class VISIBILITY_HIDDEN UnreachableBlockElim : public FunctionPass { virtual bool runOnFunction(Function &F); public: - static const char ID; // Pass identifcation, replacement for typeid + static char ID; // Pass identifcation, replacement for typeid UnreachableBlockElim() : FunctionPass((intptr_t)&ID) {} }; - const char UnreachableBlockElim::ID = 0; + char UnreachableBlockElim::ID = 0; RegisterPass<UnreachableBlockElim> X("unreachableblockelim", "Remove unreachable blocks from the CFG"); } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits