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
diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
index 15c42d6..114558d 100644
--- a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
+++ b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
@@ -1348,9 +1348,9 @@
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";
}