Quote complex names for Darwin X86 and ARM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37700 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dale Johannesen 2007-06-22 00:54:56 +00:00
parent e8138ffeaf
commit 5411835165
2 changed files with 14 additions and 2 deletions

View File

@ -780,7 +780,13 @@ bool ARMAsmPrinter::doInitialization(Module &M) {
// Emit initial debug information.
DW.BeginModule(&M);
return AsmPrinter::doInitialization(M);
AsmPrinter::doInitialization(M);
// Darwin wants symbols to be quoted if they have complex names.
if (Subtarget->isTargetDarwin())
Mang->setUseQuotes(true);
return false;
}
bool ARMAsmPrinter::doFinalization(Module &M) {

View File

@ -120,7 +120,13 @@ bool X86SharedAsmPrinter::doInitialization(Module &M) {
DW.BeginModule(&M);
}
return AsmPrinter::doInitialization(M);
AsmPrinter::doInitialization(M);
// Darwin wants symbols to be quoted if they have complex names.
if (Subtarget->isTargetDarwin())
Mang->setUseQuotes(true);
return false;
}
bool X86SharedAsmPrinter::doFinalization(Module &M) {