Later computations assume we are aligned at this point.
authorDuncan Sands <baldrick@free.fr>
Thu, 10 May 2007 18:40:24 +0000 (18:40 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 10 May 2007 18:40:24 +0000 (18:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36975 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfWriter.cpp

index 73ec4efba781dbb9c24763f712273210312532c0..d8f58ba0485935445ba02a0c76030396594bcff0 100644 (file)
@@ -2979,12 +2979,13 @@ private:
                           sizeof(int8_t) - // LPStart format
                           sizeof(int8_t) - // TType format
                           sizeof(int8_t);  // TType base offset (NEED ULEB128)
-    
+
     // Begin the exception table.
     Asm->SwitchToDataSection(TAI->getDwarfExceptionSection());
     O << "GCC_except_table" << SubprogramCount << ":\n";
+    Asm->EmitAlignment(2);
     EmitLabel("exception", SubprogramCount);
-    
+
     // Emit the header.
     Asm->EmitInt8(DW_EH_PE_omit);
     Asm->EOL("LPStart format (DW_EH_PE_omit)");