diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-21 17:37:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-21 17:37:35 +0000 |
commit | d3ffc0617402f3111f55bbb86d2fb121669fe680 (patch) | |
tree | feec6e3aa100534d0ad8429f5243f4e81eaf1f48 /lib | |
parent | 74625023a8f6375ef1c2752770d5623641ad1f78 (diff) |
fix Sparc, SystemZ, and MSP430 to not override AsmPrinter::doInitialization.
This eliminates redundancy setting up the mangler and adds support to them
for module-level inline asm and a .file directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/MSP430/MSP430AsmPrinter.cpp | 7 | ||||
-rw-r--r-- | lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp | 7 | ||||
-rw-r--r-- | lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp | 8 |
3 files changed, 0 insertions, 22 deletions
diff --git a/lib/Target/MSP430/MSP430AsmPrinter.cpp b/lib/Target/MSP430/MSP430AsmPrinter.cpp index f6da3f3019..0ad0a90396 100644 --- a/lib/Target/MSP430/MSP430AsmPrinter.cpp +++ b/lib/Target/MSP430/MSP430AsmPrinter.cpp @@ -58,7 +58,6 @@ namespace { void emitFunctionHeader(const MachineFunction &MF); bool runOnMachineFunction(MachineFunction &F); - bool doInitialization(Module &M); void getAnalysisUsage(AnalysisUsage &AU) const { AsmPrinter::getAnalysisUsage(AU); @@ -80,12 +79,6 @@ FunctionPass *llvm::createMSP430CodePrinterPass(formatted_raw_ostream &o, return new MSP430AsmPrinter(o, tm, tm.getTargetAsmInfo(), verbose); } -bool MSP430AsmPrinter::doInitialization(Module &M) { - Mang = new Mangler(M, "", TAI->getPrivateGlobalPrefix(), - TAI->getLinkerPrivateGlobalPrefix()); - return false; // success -} - void MSP430AsmPrinter::emitFunctionHeader(const MachineFunction &MF) { const Function *F = MF.getFunction(); diff --git a/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp b/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp index 7710819405..6115bf6fa1 100644 --- a/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp +++ b/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp @@ -67,7 +67,6 @@ namespace { bool printInstruction(const MachineInstr *MI); // autogenerated. bool runOnMachineFunction(MachineFunction &F); - bool doInitialization(Module &M); bool doFinalization(Module &M); bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo, unsigned AsmVariant, const char *ExtraCode); @@ -222,12 +221,6 @@ void SparcAsmPrinter::printCCOperand(const MachineInstr *MI, int opNum) { O << SPARCCondCodeToString((SPCC::CondCodes)CC); } -bool SparcAsmPrinter::doInitialization(Module &M) { - Mang = new Mangler(M, "", TAI->getPrivateGlobalPrefix(), - TAI->getLinkerPrivateGlobalPrefix()); - return false; // success -} - bool SparcAsmPrinter::doFinalization(Module &M) { // Print out module-level global variables here. for (Module::const_global_iterator I = M.global_begin(), E = M.global_end(); diff --git a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp index f4f181c307..eed46c3218 100644 --- a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp +++ b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp @@ -67,7 +67,6 @@ namespace { void emitFunctionHeader(const MachineFunction &MF); bool runOnMachineFunction(MachineFunction &F); - bool doInitialization(Module &M); bool doFinalization(Module &M); void printModuleLevelGV(const GlobalVariable* GVar); @@ -91,13 +90,6 @@ FunctionPass *llvm::createSystemZCodePrinterPass(formatted_raw_ostream &o, return new SystemZAsmPrinter(o, tm, tm.getTargetAsmInfo(), verbose); } -bool SystemZAsmPrinter::doInitialization(Module &M) { - Mang = new Mangler(M, "", TAI->getPrivateGlobalPrefix(), - TAI->getLinkerPrivateGlobalPrefix()); - return false; // success -} - - bool SystemZAsmPrinter::doFinalization(Module &M) { // Print out module-level global variables here. for (Module::const_global_iterator I = M.global_begin(), E = M.global_end(); |