mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
These asm printers shouldn't use assembly/writer.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32262 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cb5736bde6
commit
d17aa4b1f1
@ -18,7 +18,6 @@
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/Assembly/Writer.h"
|
||||
#include "llvm/CodeGen/AsmPrinter.h"
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
#include "llvm/CodeGen/MachineConstantPool.h"
|
||||
@ -300,9 +299,6 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
|
||||
|
||||
O << "\t.comm " << name << "," << TD->getTypeSize(C->getType())
|
||||
<< "," << (unsigned)TD->getTypeAlignment(C->getType());
|
||||
O << "\t\t";
|
||||
O << TAI->getCommentString() << " ";
|
||||
WriteAsOperand(O, I, true, true, &M);
|
||||
O << "\n";
|
||||
} else {
|
||||
switch (I->getLinkage()) {
|
||||
|
@ -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 @@ bool IA64AsmPrinter::doFinalization(Module &M) {
|
||||
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 @@ bool IA64AsmPrinter::doFinalization(Module &M) {
|
||||
EmitAlignment(Align);
|
||||
O << "\t.type " << name << ",@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);
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,6 @@
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/Assembly/Writer.h"
|
||||
#include "llvm/CodeGen/AsmPrinter.h"
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
#include "llvm/CodeGen/MachineConstantPool.h"
|
||||
@ -241,8 +240,6 @@ bool SparcAsmPrinter::doFinalization(Module &M) {
|
||||
|
||||
O << "\t.comm " << name << "," << TD->getTypeSize(C->getType())
|
||||
<< "," << (unsigned)TD->getTypeAlignment(C->getType());
|
||||
O << "\t\t! ";
|
||||
WriteAsOperand(O, I, true, true, &M);
|
||||
O << "\n";
|
||||
} else {
|
||||
switch (I->getLinkage()) {
|
||||
@ -284,9 +281,7 @@ bool SparcAsmPrinter::doFinalization(Module &M) {
|
||||
O << "\t.align " << Align << "\n";
|
||||
O << "\t.type " << name << ",#object\n";
|
||||
O << "\t.size " << name << "," << Size << "\n";
|
||||
O << name << ":\t\t\t\t! ";
|
||||
WriteAsOperand(O, I, true, true, &M);
|
||||
O << "\n";
|
||||
O << name << ":\n";
|
||||
EmitGlobalConstant(C);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user