From 4cef584860acbde1d71157564e0d5f6f935b38a6 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 20 Jul 2009 21:30:28 +0000 Subject: [PATCH] Pass in the unfortunately named "LessPrivatePrefix" for the "LinkerPrivatePrefix". It seems to have been used in only one place before I started this "linker_private" business. I'm thinking that a rename is in order... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76479 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 ++- lib/Target/MSP430/MSP430AsmPrinter.cpp | 3 ++- lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp | 3 ++- lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp | 3 ++- lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 80bdf04e8e8..ad6cf77b767 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -154,7 +154,8 @@ void AsmPrinter::getAnalysisUsage(AnalysisUsage &AU) const { } bool AsmPrinter::doInitialization(Module &M) { - Mang = new Mangler(M, TAI->getGlobalPrefix(), TAI->getPrivateGlobalPrefix()); + Mang = new Mangler(M, TAI->getGlobalPrefix(), TAI->getPrivateGlobalPrefix(), + TAI->getLessPrivateGlobalPrefix()); if (TAI->doesAllowQuotesInName()) Mang->setUseQuotes(true); diff --git a/lib/Target/MSP430/MSP430AsmPrinter.cpp b/lib/Target/MSP430/MSP430AsmPrinter.cpp index 49e2a2e08fa..12338143fca 100644 --- a/lib/Target/MSP430/MSP430AsmPrinter.cpp +++ b/lib/Target/MSP430/MSP430AsmPrinter.cpp @@ -82,7 +82,8 @@ FunctionPass *llvm::createMSP430CodePrinterPass(formatted_raw_ostream &o, } bool MSP430AsmPrinter::doInitialization(Module &M) { - Mang = new Mangler(M, "", TAI->getPrivateGlobalPrefix()); + Mang = new Mangler(M, "", TAI->getPrivateGlobalPrefix(), + TAI->getLessPrivateGlobalPrefix()); return false; // success } diff --git a/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp b/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp index 36c1c044a5c..ba7fd4c62c8 100644 --- a/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp +++ b/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp @@ -451,7 +451,8 @@ printFCCOperand(const MachineInstr *MI, int opNum, const char *Modifier) bool MipsAsmPrinter:: doInitialization(Module &M) { - Mang = new Mangler(M, "", TAI->getPrivateGlobalPrefix()); + Mang = new Mangler(M, "", TAI->getPrivateGlobalPrefix(), + TAI->getLessPrivateGlobalPrefix()); // Tell the assembler which ABI we are using O << "\t.section .mdebug." << emitCurrentABIString() << '\n'; diff --git a/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp b/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp index 3247cecc978..71394e8ad7e 100644 --- a/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp +++ b/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp @@ -223,7 +223,8 @@ void SparcAsmPrinter::printCCOperand(const MachineInstr *MI, int opNum) { } bool SparcAsmPrinter::doInitialization(Module &M) { - Mang = new Mangler(M, "", TAI->getPrivateGlobalPrefix()); + Mang = new Mangler(M, "", TAI->getPrivateGlobalPrefix(), + TAI->getLessPrivateGlobalPrefix()); return false; // success } diff --git a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp index 7dd6fcc304d..7b0989fce35 100644 --- a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp +++ b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp @@ -92,7 +92,8 @@ FunctionPass *llvm::createSystemZCodePrinterPass(formatted_raw_ostream &o, } bool SystemZAsmPrinter::doInitialization(Module &M) { - Mang = new Mangler(M, "", TAI->getPrivateGlobalPrefix()); + Mang = new Mangler(M, "", TAI->getPrivateGlobalPrefix(), + TAI->getLessPrivateGlobalPrefix()); return false; // success } -- 2.34.1