arm only needs to emit one .align directive for hidden nlp's, not one
authorChris Lattner <sabre@nondot.org>
Mon, 10 Aug 2009 18:02:16 +0000 (18:02 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 Aug 2009 18:02:16 +0000 (18:02 +0000)
per pointer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78574 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp

index 15c42d6f480a785bdf4e4b0a515e9806a72b4b5f..114558d5552466c1307c884f751ff8acce8d901b 100644 (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";
       }