summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-18 23:41:35 +0000
committerChris Lattner <sabre@nondot.org>2009-06-18 23:41:35 +0000
commitb84764516d7113dadc5cd5636da51636cc5c0eb7 (patch)
tree2f1f08a02e1e0dda115eefef5daef8268fe090a4 /llvm/lib/CodeGen
parent4df8e5c8004952c9358fbce64efc7f768490e30f (diff)
downloadbcm5719-llvm-b84764516d7113dadc5cd5636da51636cc5c0eb7.tar.gz
bcm5719-llvm-b84764516d7113dadc5cd5636da51636cc5c0eb7.zip
move mangler quote handling from asm printers to TargetAsmInfo.
llvm-svn: 73738
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 7ab775e26a4..28f3b9b1bf6 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -152,6 +152,9 @@ void AsmPrinter::getAnalysisUsage(AnalysisUsage &AU) const {
bool AsmPrinter::doInitialization(Module &M) {
Mang = new Mangler(M, TAI->getGlobalPrefix(), TAI->getPrivateGlobalPrefix());
+ if (TAI->doesAllowQuotesInName())
+ Mang->setUseQuotes(true);
+
GCModuleInfo *MI = getAnalysisIfAvailable<GCModuleInfo>();
assert(MI && "AsmPrinter didn't require GCModuleInfo?");
OpenPOWER on IntegriCloud