summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-06-17 21:31:43 +0000
committerBill Wendling <isanbard@gmail.com>2011-06-17 21:31:43 +0000
commit30507ef3c33690e8377e88a2278a8c20bc7a7a5c (patch)
tree784789d4be80b5e08907d7afbcbd57a0e380ec14 /lib
parent5ba89837d7cba1719ab069ac558c8a06aa26b9a6 (diff)
downloadllvm-30507ef3c33690e8377e88a2278a8c20bc7a7a5c.tar.gz
llvm-30507ef3c33690e8377e88a2278a8c20bc7a7a5c.tar.bz2
llvm-30507ef3c33690e8377e88a2278a8c20bc7a7a5c.tar.xz
Support only DwarfCFI or SjLj exception handling in LSDA decoder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/MC/MCAsmStreamer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp
index d1ea3c9044..eabf4c44b2 100644
--- a/lib/MC/MCAsmStreamer.cpp
+++ b/lib/MC/MCAsmStreamer.cpp
@@ -1605,7 +1605,11 @@ MCStreamer *llvm::createAsmStreamer(MCContext &Context,
bool useCFI, MCInstPrinter *IP,
MCCodeEmitter *CE, TargetAsmBackend *TAB,
bool ShowInst) {
- if (isVerboseAsm)
+ ExceptionHandling::ExceptionsType ET =
+ Context.getAsmInfo().getExceptionHandlingType();
+
+ if (isVerboseAsm &&
+ (ET == ExceptionHandling::SjLj || ET == ExceptionHandling::DwarfCFI))
return new MCLSDADecoderAsmStreamer(Context, OS, isVerboseAsm, useLoc,
useCFI, IP, CE, TAB, ShowInst);