diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-10 19:33:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-10 19:33:43 +0000 |
commit | 85eac0d9411c0a2005b2f4111528f276f672fee3 (patch) | |
tree | 37f50ae01c3fd2406c46ef7aaf3fa0c7c22f645b | |
parent | 79ae0d12bac5b3578b03c4ccbce87d2858d346f0 (diff) |
Darwin supports quoted labels. This implements:
test/Regression/CodeGen/PowerPC/darwin-labels.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24287 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPCAsmPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index 7969d02b23..186d092ff4 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -446,6 +446,9 @@ bool DarwinAsmPrinter::doInitialization(Module &M) { if (TM.getSubtarget<PPCSubtarget>().isGigaProcessor()) O << "\t.machine ppc970\n"; AsmPrinter::doInitialization(M); + + // Darwin wants symbols to be quoted if they have complex names. + Mang->setUseQuotes(true); return false; } |