Add support for ${:private} which prints "L" on darwin.
authorChris Lattner <sabre@nondot.org>
Wed, 27 Sep 2006 00:06:07 +0000 (00:06 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 27 Sep 2006 00:06:07 +0000 (00:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30620 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter.cpp

index 518aec3348fdef16f1a0243adcbbc482eeaed67a..013da748c208cd6e06fe2100e1d27964b4c14ae0 100644 (file)
@@ -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.