[llvm-commits] [llvm] r133297 - /llvm/trunk/lib/MC/MCAsmStreamer.cpp
Bill Wendling
isanbard at gmail.com
Fri Jun 17 14:31:43 PDT 2011
Author: void
Date: Fri Jun 17 16:31:43 2011
New Revision: 133297
URL: http://llvm.org/viewvc/llvm-project?rev=133297&view=rev
Log:
Support only DwarfCFI or SjLj exception handling in LSDA decoder.
Modified:
llvm/trunk/lib/MC/MCAsmStreamer.cpp
Modified: llvm/trunk/lib/MC/MCAsmStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmStreamer.cpp?rev=133297&r1=133296&r2=133297&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAsmStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmStreamer.cpp Fri Jun 17 16:31:43 2011
@@ -1605,7 +1605,11 @@
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);
More information about the llvm-commits
mailing list