make sure that arm nonlazypointers are aligned properly
authorChris Lattner <sabre@nondot.org>
Mon, 10 Aug 2009 18:01:34 +0000 (18:01 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 Aug 2009 18:01:34 +0000 (18:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78573 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp

index 9f7993865d24ee46c8525cc564b91a1cdbf7204e..15c42d6f480a785bdf4e4b0a515e9806a72b4b5f 100644 (file)
@@ -1337,6 +1337,7 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
     if (!GVNonLazyPtrs.empty()) {
       // Switch with ".non_lazy_symbol_pointer" directive.
       SwitchToSection(TLOFMacho.getNonLazySymbolPointerSection());
+      EmitAlignment(2);
       for (StringMap<std::string>::iterator I = GVNonLazyPtrs.begin(),
            E = GVNonLazyPtrs.end(); I != E; ++I) {
         O << I->second << ":\n";