arm only needs to emit one .align directive for hidden nlp's, not one

per pointer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78574 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-08-10 18:02:16 +00:00
parent c076a97939
commit f3231de60b

View File

@ -1348,9 +1348,9 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
if (!HiddenGVNonLazyPtrs.empty()) {
SwitchToSection(getObjFileLowering().getDataSection());
EmitAlignment(2);
for (StringMap<std::string>::iterator I = HiddenGVNonLazyPtrs.begin(),
E = HiddenGVNonLazyPtrs.end(); I != E; ++I) {
EmitAlignment(2);
O << I->second << ":\n";
O << "\t.long " << I->getKeyData() << "\n";
}