Align EH tables before label is emitted, not after,
thus aligning the label.
llvm-svn: 57310
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index 168b36c..3cfe00e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -3430,8 +3430,8 @@
// 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");