Add TAI field for exception table section.

llvm-svn: 34477
This commit is contained in:
Jim Laskey 2007-02-21 22:43:40 +00:00
parent 2dc5245c4a
commit af76e0e58f
3 changed files with 10 additions and 0 deletions

View 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;
}

View 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)

View File

@ -86,6 +86,7 @@ TargetAsmInfo::TargetAsmInfo() :
DwarfRangesSection(".debug_ranges"),
DwarfMacInfoSection(".debug_macinfo"),
DwarfEHFrameSection(".eh_frame"),
DwarfExceptionSection(".gcc_except_table"),
AsmTransCBE(0) {
}