mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Remove unused AsmPrinter OptLevel argument, and propogate.
- This more or less amounts to a revert of r65379. I'm curious to know what happened that caused this variable to become unused. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74579 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -50,9 +50,8 @@ namespace {
|
||||
std::set<std::string> FnStubs, GVStubs;
|
||||
public:
|
||||
explicit SPUAsmPrinter(raw_ostream &O, TargetMachine &TM,
|
||||
const TargetAsmInfo *T, CodeGenOpt::Level OL,
|
||||
bool V) :
|
||||
AsmPrinter(O, TM, T, OL, V) {}
|
||||
const TargetAsmInfo *T, bool V) :
|
||||
AsmPrinter(O, TM, T, V) {}
|
||||
|
||||
virtual const char *getPassName() const {
|
||||
return "STI CBEA SPU Assembly Printer";
|
||||
@@ -290,9 +289,8 @@ namespace {
|
||||
DwarfWriter *DW;
|
||||
public:
|
||||
explicit LinuxAsmPrinter(raw_ostream &O, SPUTargetMachine &TM,
|
||||
const TargetAsmInfo *T, CodeGenOpt::Level F,
|
||||
bool V)
|
||||
: SPUAsmPrinter(O, TM, T, F, V), DW(0) {}
|
||||
const TargetAsmInfo *T, bool V)
|
||||
: SPUAsmPrinter(O, TM, T, V), DW(0) {}
|
||||
|
||||
virtual const char *getPassName() const {
|
||||
return "STI CBEA SPU Assembly Printer";
|
||||
@@ -603,9 +601,8 @@ bool LinuxAsmPrinter::doFinalization(Module &M) {
|
||||
///
|
||||
FunctionPass *llvm::createSPUAsmPrinterPass(raw_ostream &o,
|
||||
SPUTargetMachine &tm,
|
||||
CodeGenOpt::Level OptLevel,
|
||||
bool verbose) {
|
||||
return new LinuxAsmPrinter(o, tm, tm.getTargetAsmInfo(), OptLevel, verbose);
|
||||
return new LinuxAsmPrinter(o, tm, tm.getTargetAsmInfo(), verbose);
|
||||
}
|
||||
|
||||
// Force static initialization.
|
||||
|
Reference in New Issue
Block a user