mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
Fix crazy indentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22380 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a698871367
commit
b12c9fa565
@ -95,7 +95,8 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
|||||||
std::string CurSection;
|
std::string CurSection;
|
||||||
|
|
||||||
// Print out module-level global variables here.
|
// Print out module-level global variables here.
|
||||||
for (Module::const_global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I)
|
for (Module::const_global_iterator I = M.global_begin(),
|
||||||
|
E = M.global_end(); I != E; ++I)
|
||||||
if (I->hasInitializer()) { // External global require no code
|
if (I->hasInitializer()) { // External global require no code
|
||||||
O << "\n\n";
|
O << "\n\n";
|
||||||
std::string name = Mang->getValueName(I);
|
std::string name = Mang->getValueName(I);
|
||||||
@ -120,6 +121,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
|||||||
O << "\n";
|
O << "\n";
|
||||||
} else {
|
} else {
|
||||||
switch (I->getLinkage()) {
|
switch (I->getLinkage()) {
|
||||||
|
default: assert(0 && "Unknown linkage type!");
|
||||||
case GlobalValue::LinkOnceLinkage:
|
case GlobalValue::LinkOnceLinkage:
|
||||||
case GlobalValue::WeakLinkage: // FIXME: Verify correct for weak.
|
case GlobalValue::WeakLinkage: // FIXME: Verify correct for weak.
|
||||||
// Nonnull linkonce -> weak
|
// Nonnull linkonce -> weak
|
||||||
@ -140,9 +142,6 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
|||||||
else
|
else
|
||||||
SwitchSection(O, CurSection, ".data");
|
SwitchSection(O, CurSection, ".data");
|
||||||
break;
|
break;
|
||||||
case GlobalValue::GhostLinkage:
|
|
||||||
std::cerr << "GhostLinkage cannot appear in X86AsmPrinter!\n";
|
|
||||||
abort();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
emitAlignment(Align);
|
emitAlignment(Align);
|
||||||
@ -163,8 +162,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
|||||||
// Output stubs for dynamically-linked functions
|
// Output stubs for dynamically-linked functions
|
||||||
unsigned j = 1;
|
unsigned j = 1;
|
||||||
for (std::set<std::string>::iterator i = FnStubs.begin(), e = FnStubs.end();
|
for (std::set<std::string>::iterator i = FnStubs.begin(), e = FnStubs.end();
|
||||||
i != e; ++i, ++j)
|
i != e; ++i, ++j) {
|
||||||
{
|
|
||||||
O << "\t.symbol_stub\n";
|
O << "\t.symbol_stub\n";
|
||||||
O << "L" << *i << "$stub:\n";
|
O << "L" << *i << "$stub:\n";
|
||||||
O << "\t.indirect_symbol " << *i << "\n";
|
O << "\t.indirect_symbol " << *i << "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user