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 | bae02cfd46c569bb571a234544fb1bbe19c43b59 (patch) | |
tree | 160fc8c5483f14c547cd414122c4a89a9cf6a344 | |
parent | 3ce9b67e0c0f171c6d09c19407930ce6989f1b9d (diff) |
Add support for ${:private} which prints "L" on darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30620 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 518aec3348..013da748c2 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/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. |