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 | 9eb7dfa15a4ba4046f853b3ed1359b114a2a1792 (patch) | |
| tree | b075199061c0d6de3db8d47e1e030475228506c4 /llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | |
| parent | b8e8cbec50f9874bd7fa5288e7af29e27ebea4d2 (diff) | |
| download | bcm5719-llvm-9eb7dfa15a4ba4046f853b3ed1359b114a2a1792.tar.gz bcm5719-llvm-9eb7dfa15a4ba4046f853b3ed1359b114a2a1792.zip | |
Darwin supports quoted labels. This implements:
test/Regression/CodeGen/PowerPC/darwin-labels.ll
llvm-svn: 24287
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp index 7969d02b23e..186d092ff42 100644 --- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/llvm/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; } |

