mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 17:32:36 +00:00
remove some pointless null switchtosections. The IntelAsmPrinter doesn't really work anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51f39961c3
commit
090d73c6bd
@ -493,14 +493,14 @@ void X86IntelAsmPrinter::PrintGlobalVariable(const GlobalVariable *GV) {
|
|||||||
case GlobalValue::LinkOnceODRLinkage:
|
case GlobalValue::LinkOnceODRLinkage:
|
||||||
case GlobalValue::WeakAnyLinkage:
|
case GlobalValue::WeakAnyLinkage:
|
||||||
case GlobalValue::WeakODRLinkage:
|
case GlobalValue::WeakODRLinkage:
|
||||||
SwitchToSection(0);
|
// FIXME: make a MCSection.
|
||||||
O << name << "?\tSEGEMNT PARA common 'COMMON'\n";
|
O << name << "?\tSEGEMNT PARA common 'COMMON'\n";
|
||||||
bCustomSegment = true;
|
bCustomSegment = true;
|
||||||
// FIXME: the default alignment is 16 bytes, but 1, 2, 4, and 256
|
// FIXME: the default alignment is 16 bytes, but 1, 2, 4, and 256
|
||||||
// are also available.
|
// are also available.
|
||||||
break;
|
break;
|
||||||
case GlobalValue::AppendingLinkage:
|
case GlobalValue::AppendingLinkage:
|
||||||
SwitchToSection(0);
|
// FIXME: make a MCSection.
|
||||||
O << name << "?\tSEGMENT PARA public 'DATA'\n";
|
O << name << "?\tSEGMENT PARA public 'DATA'\n";
|
||||||
bCustomSegment = true;
|
bCustomSegment = true;
|
||||||
// FIXME: the default alignment is 16 bytes, but 1, 2, 4, and 256
|
// FIXME: the default alignment is 16 bytes, but 1, 2, 4, and 256
|
||||||
@ -538,7 +538,6 @@ void X86IntelAsmPrinter::PrintGlobalVariable(const GlobalVariable *GV) {
|
|||||||
bool X86IntelAsmPrinter::doFinalization(Module &M) {
|
bool X86IntelAsmPrinter::doFinalization(Module &M) {
|
||||||
// Output linker support code for dllexported globals
|
// Output linker support code for dllexported globals
|
||||||
if (!DLLExportedGVs.empty() || !DLLExportedFns.empty()) {
|
if (!DLLExportedGVs.empty() || !DLLExportedFns.empty()) {
|
||||||
SwitchToSection(0);
|
|
||||||
O << "; WARNING: The following code is valid only with MASM v8.x"
|
O << "; WARNING: The following code is valid only with MASM v8.x"
|
||||||
<< "and (possible) higher\n"
|
<< "and (possible) higher\n"
|
||||||
<< "; This version of MASM is usually shipped with Microsoft "
|
<< "; This version of MASM is usually shipped with Microsoft "
|
||||||
@ -564,7 +563,6 @@ bool X86IntelAsmPrinter::doFinalization(Module &M) {
|
|||||||
|
|
||||||
// Bypass X86SharedAsmPrinter::doFinalization().
|
// Bypass X86SharedAsmPrinter::doFinalization().
|
||||||
bool Result = AsmPrinter::doFinalization(M);
|
bool Result = AsmPrinter::doFinalization(M);
|
||||||
SwitchToSection(0);
|
|
||||||
O << "\tend\n";
|
O << "\tend\n";
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user