diff options
author | Chris Lattner <sabre@nondot.org> | 2006-09-27 00:06:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-09-27 00:06:07 +0000 |
commit | 30b4708df22ca327696e32da1961e0567810c753 (patch) | |
tree | 95f246bfa635d55053531800ec95562f7256be4d /llvm/lib/CodeGen/AsmPrinter.cpp | |
parent | a32814b033cbdd48c60f7efe9e49b58c4cf6e018 (diff) | |
download | bcm5719-llvm-30b4708df22ca327696e32da1961e0567810c753.tar.gz bcm5719-llvm-30b4708df22ca327696e32da1961e0567810c753.zip |
Add support for ${:private} which prints "L" on darwin.
llvm-svn: 30620
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index 518aec3348f..013da748c20 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter.cpp @@ -626,7 +626,9 @@ AsmPrinter::EmitMachineConstantPoolValue(MachineConstantPoolValue *MCPV) { /// syntax used is ${:comment}. Targets can override this to add support /// for their own strange codes. void AsmPrinter::PrintSpecial(const MachineInstr *MI, const char *Code) { - if (!strcmp(Code, "comment")) { + if (!strcmp(Code, "private")) { + O << TAI->getPrivateGlobalPrefix(); + } else if (!strcmp(Code, "comment")) { O << TAI->getCommentString(); } else if (!strcmp(Code, "uid")) { // Assign a unique ID to this machine instruction. |