move getDwarfExceptionSection from TAI to TLOF and rename it to
authorChris Lattner <sabre@nondot.org>
Sun, 2 Aug 2009 01:34:32 +0000 (01:34 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 2 Aug 2009 01:34:32 +0000 (01:34 +0000)
commitd5bbb07ec806e6fa1e804afd7073987fdacc83e4
treecfc4d2c2187d044c70d23c05086d146dce8ff69e
parent967ce7f5e1239be52386afa0439d2c433809aeeb
move getDwarfExceptionSection from TAI to TLOF and rename it to
getLSDASection() to be more specific.  This makes it pretty obvious
that the ELF LSDA section is being specified wrong in PIC mode.  We're
probably getting a lot of startup-time relocations to a readonly page,
which is expensive and bad.

Someone who cares about ELF C++ should investigate this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77847 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetAsmInfo.h
include/llvm/Target/TargetLoweringObjectFile.h
lib/CodeGen/AsmPrinter/DwarfException.cpp
lib/Target/PowerPC/PPCTargetAsmInfo.cpp
lib/Target/TargetAsmInfo.cpp
lib/Target/TargetLoweringObjectFile.cpp
lib/Target/X86/X86TargetAsmInfo.cpp