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:
Chris Lattner 2005-07-11 06:25:47 +00:00
parent a698871367
commit b12c9fa565

View File

@ -95,7 +95,8 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
std::string CurSection;
// 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
O << "\n\n";
std::string name = Mang->getValueName(I);
@ -120,6 +121,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
O << "\n";
} else {
switch (I->getLinkage()) {
default: assert(0 && "Unknown linkage type!");
case GlobalValue::LinkOnceLinkage:
case GlobalValue::WeakLinkage: // FIXME: Verify correct for weak.
// Nonnull linkonce -> weak
@ -140,9 +142,6 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
else
SwitchSection(O, CurSection, ".data");
break;
case GlobalValue::GhostLinkage:
std::cerr << "GhostLinkage cannot appear in X86AsmPrinter!\n";
abort();
}
emitAlignment(Align);
@ -163,8 +162,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
// Output stubs for dynamically-linked functions
unsigned j = 1;
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 << "L" << *i << "$stub:\n";
O << "\t.indirect_symbol " << *i << "\n";