[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Tue Sep 26 17:06:21 PDT 2006
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.100 -> 1.101
---
Log message:
Add support for ${:private} which prints "L" on darwin.
---
Diffs of the changes: (+3 -1)
AsmPrinter.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.100 llvm/lib/CodeGen/AsmPrinter.cpp:1.101
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.100 Tue Sep 26 18:59:50 2006
+++ llvm/lib/CodeGen/AsmPrinter.cpp Tue Sep 26 19:06:07 2006
@@ -626,7 +626,9 @@
/// 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.
More information about the llvm-commits
mailing list