diff options
author | Duncan Sands <baldrick@free.fr> | 2011-09-28 09:13:02 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2011-09-28 09:13:02 +0000 |
commit | 2e67937f768163ce101786ba068e6b6419481339 (patch) | |
tree | 2259847f740f5f53373a035dbbc6177c1f4b1287 /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | |
parent | 212334f7ab3bf470656c5ca66e72673a7752dcba (diff) | |
download | bcm5719-llvm-2e67937f768163ce101786ba068e6b6419481339.tar.gz bcm5719-llvm-2e67937f768163ce101786ba068e6b6419481339.zip |
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.
llvm-svn: 140686
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index c3fa826c201..18b726b173d 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/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); |