Add TAI field for exception table section.
authorJim Laskey <jlaskey@mac.com>
Wed, 21 Feb 2007 22:43:40 +0000 (22:43 +0000)
committerJim Laskey <jlaskey@mac.com>
Wed, 21 Feb 2007 22:43:40 +0000 (22:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34477 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetAsmInfo.h
lib/Target/PowerPC/PPCTargetAsmInfo.cpp
lib/Target/TargetAsmInfo.cpp

index 75e797cd88a26c55ac876a41a90dfb2ef76a5aca..a109d77db654638d3c82e495abc7280c35a189c1 100644 (file)
@@ -313,6 +313,11 @@ namespace llvm {
     /// DwarfEHFrameSection - Section directive for Exception frames.
     ///
     const char *DwarfEHFrameSection; // Defaults to ".eh_frame".
+    
+    /// DwarfExceptionSection - Section directive for Exception table.
+    ///
+    const char *DwarfExceptionSection; // Defaults to ".gcc_except_table".
+     
 
     //===--- CBE Asm Translation Table -----------------------------------===//
 
@@ -540,6 +545,9 @@ namespace llvm {
     const char *getDwarfEHFrameSection() const {
       return DwarfEHFrameSection;
     }
+    const char *getDwarfExceptionSection() const {
+      return DwarfExceptionSection;
+    }
     const char** getAsmCBE() const {
       return AsmTransCBE;
     }
index 38e0d212bf64e2e2ed07c8284c95b5345b74b234..bdda9909f4a9a52a932365cb4f6c34b6adcdc62d 100644 (file)
@@ -43,6 +43,7 @@ PPCTargetAsmInfo::PPCTargetAsmInfo(const PPCTargetMachine &TM) {
   DwarfMacInfoSection = ".section __DWARF,__debug_macinfo,regular,debug";
   DwarfEHFrameSection =
   ".section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support";
+  DwarfExceptionSection = ".section __DATA,__gcc_except_tab";
 }
 
 DarwinTargetAsmInfo::DarwinTargetAsmInfo(const PPCTargetMachine &TM)
index e8e2de46bdda2cfb7c4c4d21c6c3d792d0a206d6..efc54841b43d7e8bca9f22038f7342ea68e4be31 100644 (file)
@@ -86,6 +86,7 @@ TargetAsmInfo::TargetAsmInfo() :
   DwarfRangesSection(".debug_ranges"),
   DwarfMacInfoSection(".debug_macinfo"),
   DwarfEHFrameSection(".eh_frame"),
+  DwarfExceptionSection(".gcc_except_table"),
   AsmTransCBE(0) {
 }