mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
* declare local common symbols as such (.lcomm, not merely .common)
* begin great adventure into correct function descriptor materialization git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20956 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
290f64c1cb
commit
1f867b103d
@ -112,12 +112,15 @@ bool IA64SharedAsmPrinter::doFinalization(Module &M) {
|
|||||||
(I->hasLinkOnceLinkage() || I->hasInternalLinkage() ||
|
(I->hasLinkOnceLinkage() || I->hasInternalLinkage() ||
|
||||||
I->hasWeakLinkage() /* FIXME: Verify correct */)) {
|
I->hasWeakLinkage() /* FIXME: Verify correct */)) {
|
||||||
SwitchSection(O, CurSection, ".data");
|
SwitchSection(O, CurSection, ".data");
|
||||||
if (I->hasInternalLinkage())
|
if (I->hasInternalLinkage()) {
|
||||||
// FIXME O << "\t.local " << name << "\n";
|
O << "\t.lcomm " << name << "," << TD.getTypeSize(C->getType())
|
||||||
|
<< "," << (1 << Align);
|
||||||
O << "\t.common " << name << "," << TD.getTypeSize(C->getType())
|
O << "\t\t// ";
|
||||||
<< "," << (1 << Align);
|
} else {
|
||||||
O << "\t\t// ";
|
O << "\t.common " << name << "," << TD.getTypeSize(C->getType())
|
||||||
|
<< "," << (1 << Align);
|
||||||
|
O << "\t\t// ";
|
||||||
|
}
|
||||||
WriteAsOperand(O, I, true, true, &M);
|
WriteAsOperand(O, I, true, true, &M);
|
||||||
O << "\n";
|
O << "\n";
|
||||||
} else {
|
} else {
|
||||||
@ -345,7 +348,7 @@ void IA64AsmPrinter::printOp(const MachineOperand &MO,
|
|||||||
bool Needfptr=false; // if we're computing an address @ltoff(X), do
|
bool Needfptr=false; // if we're computing an address @ltoff(X), do
|
||||||
// we need to decorate it so it becomes
|
// we need to decorate it so it becomes
|
||||||
// @ltoff(@fptr(X)) ?
|
// @ltoff(@fptr(X)) ?
|
||||||
if(F && !isBRCALLinsn && F->isExternal())
|
if(F && !isBRCALLinsn /*&& F->isExternal()*/)
|
||||||
Needfptr=true;
|
Needfptr=true;
|
||||||
|
|
||||||
// if this is the target of a call instruction, we should define
|
// if this is the target of a call instruction, we should define
|
||||||
|
Loading…
Reference in New Issue
Block a user