summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2007-02-21 22:43:40 +0000
committerJim Laskey <jlaskey@mac.com>2007-02-21 22:43:40 +0000
commitaf76e0e58f4ac5dbb94a8efc25b972cc1cd81acb (patch)
tree1578855e65c1f3995ece3044958d130a9be82b39
parent2dc5245c4abd5f60a52159cdc900f0d35d92c02a (diff)
downloadbcm5719-llvm-af76e0e58f4ac5dbb94a8efc25b972cc1cd81acb.tar.gz
bcm5719-llvm-af76e0e58f4ac5dbb94a8efc25b972cc1cd81acb.zip
Add TAI field for exception table section.
llvm-svn: 34477
-rw-r--r--llvm/include/llvm/Target/TargetAsmInfo.h8
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp1
-rw-r--r--llvm/lib/Target/TargetAsmInfo.cpp1
3 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm/Target/TargetAsmInfo.h b/llvm/include/llvm/Target/TargetAsmInfo.h
index 75e797cd88a..a109d77db65 100644
--- a/llvm/include/llvm/Target/TargetAsmInfo.h
+++ b/llvm/include/llvm/Target/TargetAsmInfo.h
@@ -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;
}
diff --git a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
index 38e0d212bf6..bdda9909f4a 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
@@ -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)
diff --git a/llvm/lib/Target/TargetAsmInfo.cpp b/llvm/lib/Target/TargetAsmInfo.cpp
index e8e2de46bdd..efc54841b43 100644
--- a/llvm/lib/Target/TargetAsmInfo.cpp
+++ b/llvm/lib/Target/TargetAsmInfo.cpp
@@ -86,6 +86,7 @@ TargetAsmInfo::TargetAsmInfo() :
DwarfRangesSection(".debug_ranges"),
DwarfMacInfoSection(".debug_macinfo"),
DwarfEHFrameSection(".eh_frame"),
+ DwarfExceptionSection(".gcc_except_table"),
AsmTransCBE(0) {
}
OpenPOWER on IntegriCloud