[llvm-commits] CVS: llvm/lib/Target/IA64/IA64AsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Tue Dec 5 22:13:42 PST 2006
Changes in directory llvm/lib/Target/IA64:
IA64AsmPrinter.cpp updated: 1.37 -> 1.38
---
Log message:
These asm printers shouldn't use assembly/writer.h
---
Diffs of the changes: (+3 -10)
IA64AsmPrinter.cpp | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
Index: llvm/lib/Target/IA64/IA64AsmPrinter.cpp
diff -u llvm/lib/Target/IA64/IA64AsmPrinter.cpp:1.37 llvm/lib/Target/IA64/IA64AsmPrinter.cpp:1.38
--- llvm/lib/Target/IA64/IA64AsmPrinter.cpp:1.37 Wed Oct 4 21:51:36 2006
+++ llvm/lib/Target/IA64/IA64AsmPrinter.cpp Wed Dec 6 00:13:25 2006
@@ -20,7 +20,6 @@
#include "IA64TargetMachine.h"
#include "llvm/Module.h"
#include "llvm/Type.h"
-#include "llvm/Assembly/Writer.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/Target/TargetAsmInfo.h"
@@ -282,14 +281,12 @@
if (I->hasInternalLinkage()) {
O << "\t.lcomm " << name << "#," << TD->getTypeSize(C->getType())
<< "," << (1 << Align);
- O << "\t\t// ";
+ O << "\n";
} else {
O << "\t.common " << name << "#," << TD->getTypeSize(C->getType())
<< "," << (1 << Align);
- O << "\t\t// ";
+ O << "\n";
}
- WriteAsOperand(O, I, true, true, &M);
- O << "\n";
} else {
switch (I->getLinkage()) {
case GlobalValue::LinkOnceLinkage:
@@ -326,11 +323,7 @@
EmitAlignment(Align);
O << "\t.type " << name << ", at object\n";
O << "\t.size " << name << "," << Size << "\n";
- O << name << ":\t\t\t\t// ";
- WriteAsOperand(O, I, true, true, &M);
- O << " = ";
- WriteAsOperand(O, C, false, false, &M);
- O << "\n";
+ O << name << ":\t\t\t\t// " << *C << "\n";
EmitGlobalConstant(C);
}
}
More information about the llvm-commits
mailing list