OSDN Git Service

Align EH tables before label is emitted, not after,
authorDale Johannesen <dalej@apple.com>
Wed, 8 Oct 2008 21:50:21 +0000 (21:50 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 8 Oct 2008 21:50:21 +0000 (21:50 +0000)
thus aligning the label.

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

lib/CodeGen/AsmPrinter/DwarfWriter.cpp

index 168b36c..3cfe00e 100644 (file)
@@ -3430,8 +3430,8 @@ private:
 
     // Begin the exception table.
     Asm->SwitchToDataSection(TAI->getDwarfExceptionSection());
-    O << "GCC_except_table" << SubprogramCount << ":\n";
     Asm->EmitAlignment(2, 0, 0, false);
+    O << "GCC_except_table" << SubprogramCount << ":\n";
     for (unsigned i = 0; i != SizeAlign; ++i) {
       Asm->EmitInt8(0);
       Asm->EOL("Padding");