summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachOWriter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-01-16 20:27:59 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-01-16 20:27:59 +0000
commit9794fdfab001b211afba7e4900f8c52a194c8ca6 (patch)
tree9cf332be5aa388fcc6225c5c8626f8c0b7bc1a10 /llvm/lib/CodeGen/MachOWriter.cpp
parentf5974fa0d5a8bc4055fb2a5c0e52dbd5dc3c62c9 (diff)
downloadbcm5719-llvm-9794fdfab001b211afba7e4900f8c52a194c8ca6.tar.gz
bcm5719-llvm-9794fdfab001b211afba7e4900f8c52a194c8ca6.zip
Revert 93648.
Mangler::getMangledName is used from lto Mangler::setUseQuotes is used in the AsmPrinter Mangler::setSymbolsCanStartWithDigit is used in the AsmPrinter llvm-svn: 93652
Diffstat (limited to 'llvm/lib/CodeGen/MachOWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/MachOWriter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachOWriter.cpp b/llvm/lib/CodeGen/MachOWriter.cpp
index 23e5c4bd26c..cab71cea0d5 100644
--- a/llvm/lib/CodeGen/MachOWriter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud