diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-01-16 20:27:59 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-01-16 20:27:59 +0000 |
commit | 0f0c97810c0d35882fdd2160553b0be94332e3fa (patch) | |
tree | 6b5acc658beaa85e7b6732f4ac5c304b793025e3 /lib/CodeGen/MachOWriter.cpp | |
parent | 848d0f37d2ef3c8418380d5f7f3dd083a132fe48 (diff) |
Revert 93648.
Mangler::getMangledName is used from lto
Mangler::setUseQuotes is used in the AsmPrinter
Mangler::setSymbolsCanStartWithDigit is used in the AsmPrinter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93652 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachOWriter.cpp')
-rw-r--r-- | lib/CodeGen/MachOWriter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp index 23e5c4bd26..cab71cea0d 100644 --- a/lib/CodeGen/MachOWriter.cpp +++ b/lib/CodeGen/MachOWriter.cpp @@ -72,6 +72,12 @@ bool MachOWriter::doInitialization(Module &M) { Mang = new Mangler(M, MAI->getGlobalPrefix(), MAI->getPrivateGlobalPrefix(), MAI->getLinkerPrivateGlobalPrefix()); + if (MAI->doesAllowQuotesInName()) + Mang->setUseQuotes(true); + + if (MAI->doesAllowNameToStartWithDigit()) + Mang->setSymbolsCanStartWithDigit(true); + // Initialize TargetLoweringObjectFile. TM.getTargetLowering()->getObjFileLowering().Initialize(OutContext, TM); |