summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-09-28 09:13:02 +0000
committerDuncan Sands <baldrick@free.fr>2011-09-28 09:13:02 +0000
commit42e5c799b61ce70620d4d4d4d20e847750a185c3 (patch)
treef10279d8806929a93e1b170b517495cc3a4ae4be /lib
parentca9215970d3a7fb9450d4ad1c22a2418f686a1a4 (diff)
downloadllvm-42e5c799b61ce70620d4d4d4d20e847750a185c3.tar.gz
llvm-42e5c799b61ce70620d4d4d4d20e847750a185c3.tar.bz2
llvm-42e5c799b61ce70620d4d4d4d20e847750a185c3.tar.xz
A typeid of zero means a cleanup, not a catch. This case occurs
when there is both a catch and a cleanup. Correct the comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfException.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp
index c3fa826c20..18b726b173 100644
--- a/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -649,12 +649,14 @@ void DwarfException::EmitExceptionTable() {
// Used by the runtime to match the type of the thrown exception to the
// type of the catch clauses or the types in the exception specification.
if (VerboseAsm) {
- if (Action.ValueForTypeID >= 0)
+ if (Action.ValueForTypeID > 0)
Asm->OutStreamer.AddComment(Twine(" Catch TypeInfo ") +
llvm::itostr(Action.ValueForTypeID));
- else
+ else if (Action.ValueForTypeID < 0)
Asm->OutStreamer.AddComment(Twine(" Filter TypeInfo ") +
llvm::itostr(Action.ValueForTypeID));
+ else
+ Asm->OutStreamer.AddComment(" Cleanup");
}
Asm->EmitSLEB128(Action.ValueForTypeID);