From c1fe16610ade320bade1a970fa2721b0558321b8 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Thu, 10 May 2007 18:40:24 +0000 Subject: [PATCH] Later computations assume we are aligned at this point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36975 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/DwarfWriter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index 73ec4efba78..d8f58ba0485 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/lib/CodeGen/DwarfWriter.cpp @@ -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)");