reindent a loop, unswitch a loop. No functionality changes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24692 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-12-13 04:33:58 +00:00
parent d7d746f603
commit deea416570

View File

@ -435,8 +435,9 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
// Print out module-level global variables here.
for (Module::const_global_iterator I = M.global_begin(), E = M.global_end();
I != E; ++I)
if (I->hasInitializer()) { // External global require no code
I != E; ++I) {
if (!I->hasInitializer()) continue; // External global require no code
// Check to see if this is a special global used by LLVM.
if (I->hasAppendingLinkage()) {
if (I->getName() == "llvm.used")
@ -506,10 +507,9 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
}
// Output stubs for dynamically-linked functions
for (std::set<std::string>::iterator i = FnStubs.begin(), e = FnStubs.end();
i != e; ++i)
{
if (PICEnabled) {
for (std::set<std::string>::iterator i = FnStubs.begin(), e = FnStubs.end();
i != e; ++i) {
O << ".data\n";
O<<".section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32\n";
EmitAlignment(2);
@ -529,7 +529,10 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
O << "L" << *i << "$lazy_ptr:\n";
O << "\t.indirect_symbol " << *i << "\n";
O << "\t.long dyld_stub_binding_helper\n";
}
} else {
for (std::set<std::string>::iterator i = FnStubs.begin(), e = FnStubs.end();
i != e; ++i) {
O<<"\t.section __TEXT,__symbol_stub1,symbol_stubs,pure_instructions,16\n";
EmitAlignment(4);
O << "L" << *i << "$stub:\n";
@ -558,13 +561,14 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
}
// Output stubs for link-once variables
if (LinkOnceStubs.begin() != LinkOnceStubs.end())
if (LinkOnceStubs.begin() != LinkOnceStubs.end()) {
O << ".data\n.align 2\n";
for (std::set<std::string>::iterator i = LinkOnceStubs.begin(),
e = LinkOnceStubs.end(); i != e; ++i) {
O << "L" << *i << "$non_lazy_ptr:\n"
<< "\t.long\t" << *i << '\n';
}
}
// Funny Darwin hack: This flag tells the linker that no global symbols
// contain code that falls through to other global symbols (e.g. the obvious