Changes in directory llvm/tools/opt:
AnalysisWrappers.cpp updated: 1.23 -> 1.24 GraphPrinters.cpp updated: 1.16 -> 1.17 PrintSCC.cpp updated: 1.17 -> 1.18 opt.cpp updated: 1.136 -> 1.137 --- Log message: Drop 'const' --- Diffs of the changes: (+16 -16) AnalysisWrappers.cpp | 8 ++++---- GraphPrinters.cpp | 4 ++-- PrintSCC.cpp | 8 ++++---- opt.cpp | 12 ++++++------ 4 files changed, 16 insertions(+), 16 deletions(-) Index: llvm/tools/opt/AnalysisWrappers.cpp diff -u llvm/tools/opt/AnalysisWrappers.cpp:1.23 llvm/tools/opt/AnalysisWrappers.cpp:1.24 --- llvm/tools/opt/AnalysisWrappers.cpp:1.23 Wed May 2 16:39:20 2007 +++ llvm/tools/opt/AnalysisWrappers.cpp Wed May 2 20:11:54 2007 @@ -30,7 +30,7 @@ /// useful when looking for standard library functions we should constant fold /// or handle in alias analyses. struct ExternalFunctionsPassedConstants : public ModulePass { - static const char ID; // Pass ID, replacement for typeid + static char ID; // Pass ID, replacement for typeid ExternalFunctionsPassedConstants() : ModulePass((intptr_t)&ID) {} virtual bool runOnModule(Module &M) { for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) @@ -63,12 +63,12 @@ } }; - const char ExternalFunctionsPassedConstants::ID = 0; + char ExternalFunctionsPassedConstants::ID = 0; RegisterPass<ExternalFunctionsPassedConstants> P1("externalfnconstants", "Print external fn callsites passed constants"); struct CallGraphPrinter : public ModulePass { - static const char ID; // Pass ID, replacement for typeid + static char ID; // Pass ID, replacement for typeid CallGraphPrinter() : ModulePass((intptr_t)&ID) {} virtual void getAnalysisUsage(AnalysisUsage &AU) const { @@ -82,7 +82,7 @@ } }; - const char CallGraphPrinter::ID = 0; + char CallGraphPrinter::ID = 0; RegisterPass<CallGraphPrinter> P2("callgraph", "Print a call graph"); } Index: llvm/tools/opt/GraphPrinters.cpp diff -u llvm/tools/opt/GraphPrinters.cpp:1.16 llvm/tools/opt/GraphPrinters.cpp:1.17 --- llvm/tools/opt/GraphPrinters.cpp:1.16 Wed May 2 16:39:20 2007 +++ llvm/tools/opt/GraphPrinters.cpp Wed May 2 20:11:54 2007 @@ -60,7 +60,7 @@ namespace { struct CallGraphPrinter : public ModulePass { - static const char ID; // Pass ID, replacement for typeid + static char ID; // Pass ID, replacement for typeid CallGraphPrinter() : ModulePass((intptr_t)&ID) {} virtual bool runOnModule(Module &M) { @@ -77,7 +77,7 @@ } }; - const char CallGraphPrinter::ID = 0; + char CallGraphPrinter::ID = 0; RegisterPass<CallGraphPrinter> P2("print-callgraph", "Print Call Graph to 'dot' file"); } Index: llvm/tools/opt/PrintSCC.cpp diff -u llvm/tools/opt/PrintSCC.cpp:1.17 llvm/tools/opt/PrintSCC.cpp:1.18 --- llvm/tools/opt/PrintSCC.cpp:1.17 Wed May 2 16:39:20 2007 +++ llvm/tools/opt/PrintSCC.cpp Wed May 2 20:11:54 2007 @@ -35,7 +35,7 @@ namespace { struct CFGSCC : public FunctionPass { - static const char ID; // Pass identification, replacement for typeid + static char ID; // Pass identification, replacement for typeid CFGSCC() : FunctionPass((intptr_t)&ID) {} bool runOnFunction(Function& func); @@ -47,7 +47,7 @@ }; struct CallGraphSCC : public ModulePass { - static const char ID; // Pass identification, replacement for typeid + static char ID; // Pass identification, replacement for typeid CallGraphSCC() : ModulePass((intptr_t)&ID) {} // run - Print out SCCs in the call graph for the specified module. @@ -62,11 +62,11 @@ } }; - const char CFGSCC::ID = 0; + char CFGSCC::ID = 0; RegisterPass<CFGSCC> Y("cfgscc", "Print SCCs of each function CFG"); - const char CallGraphSCC::ID = 0; + char CallGraphSCC::ID = 0; RegisterPass<CallGraphSCC> Z("callscc", "Print SCCs of the Call Graph"); } Index: llvm/tools/opt/opt.cpp diff -u llvm/tools/opt/opt.cpp:1.136 llvm/tools/opt/opt.cpp:1.137 --- llvm/tools/opt/opt.cpp:1.136 Wed May 2 16:39:20 2007 +++ llvm/tools/opt/opt.cpp Wed May 2 20:11:54 2007 @@ -98,7 +98,7 @@ namespace { struct ModulePassPrinter : public ModulePass { - static const char ID; + static char ID; const PassInfo *PassToPrint; ModulePassPrinter(const PassInfo *PI) : ModulePass((intptr_t)&ID), PassToPrint(PI) {} @@ -121,10 +121,10 @@ } }; -const char ModulePassPrinter::ID = 0; +char ModulePassPrinter::ID = 0; struct FunctionPassPrinter : public FunctionPass { const PassInfo *PassToPrint; - static const char ID; + static char ID; FunctionPassPrinter(const PassInfo *PI) : FunctionPass((intptr_t)&ID), PassToPrint(PI) {} @@ -146,10 +146,10 @@ } }; -const char FunctionPassPrinter::ID = 0; +char FunctionPassPrinter::ID = 0; struct BasicBlockPassPrinter : public BasicBlockPass { const PassInfo *PassToPrint; - static const char ID; + static char ID; BasicBlockPassPrinter(const PassInfo *PI) : BasicBlockPass((intptr_t)&ID), PassToPrint(PI) {} @@ -172,7 +172,7 @@ } }; -const char BasicBlockPassPrinter::ID = 0; +char BasicBlockPassPrinter::ID = 0; inline void addPass(PassManager &PM, Pass *P) { // Add the pass to the pass manager... PM.add(P); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits