summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2011-01-14 21:58:08 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2011-01-14 21:58:08 +0000
commit9be547cfd3747e30963204187a99b59a11668cc7 (patch)
tree1cfd4a2a1d8717fea5879b5886680c8ac3fcb405 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent4d9de6be4b56c0c625e32492f2d9e69e681aa49f (diff)
downloadbcm5719-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.cpp10
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;
}
OpenPOWER on IntegriCloud