diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2011-01-14 21:58:08 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2011-01-14 21:58:08 +0000 |
commit | 3965b5e974d57f3e56a2c7f37d76d73e572dfb20 (patch) | |
tree | 37c2d97895d4f254c7f1a27125d73997523e0273 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | e749911372c75e4e68f83a32b4092f4ffb0d2793 (diff) |
Add a possibility to switch between CFI directives- and table-based frame description emission. Currently all the backends use table-based stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index e86042fbb8..7f2b18c6e6 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -188,7 +188,15 @@ bool AsmPrinter::doInitialization(Module &M) { DD = new DwarfDebug(this, &M); if (MAI->doesSupportExceptionHandling()) - DE = new DwarfTableException(this); + switch (MAI->getExceptionHandlingType()) { + default: + case ExceptionHandling::DwarfTable: + DE = new DwarfTableException(this); + break; + case ExceptionHandling::DwarfCFI: + DE = new DwarfCFIException(this); + break; + } return false; } |