mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Drop 'const'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36662 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -98,7 +98,7 @@ AnalyzeOnly("analyze", cl::desc("Only perform analysis, no optimization"));
|
||||
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 @@ struct ModulePassPrinter : public ModulePass {
|
||||
}
|
||||
};
|
||||
|
||||
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 @@ struct FunctionPassPrinter : public FunctionPass {
|
||||
}
|
||||
};
|
||||
|
||||
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 @@ struct BasicBlockPassPrinter : public BasicBlockPass {
|
||||
}
|
||||
};
|
||||
|
||||
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);
|
||||
|
Reference in New Issue
Block a user