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 | 9be547cfd3747e30963204187a99b59a11668cc7 (patch) | |
tree | 1cfd4a2a1d8717fea5879b5886680c8ac3fcb405 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 4d9de6be4b56c0c625e32492f2d9e69e681aa49f (diff) | |
download | bcm5719-llvm-9be547cfd3747e30963204187a99b59a11668cc7.tar.gz bcm5719-llvm-9be547cfd3747e30963204187a99b59a11668cc7.zip |
Add a possibility to switch between CFI directives- and table-based frame description emission. Currently all the backends use table-based stuff.
llvm-svn: 123476
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index e86042fbb88..7f2b18c6e6f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/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; } |