diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-02-10 00:59:47 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-02-10 00:59:47 +0000 |
commit | a0cd0e11c9408a0aba64cc3a74d6a38c7c683847 (patch) | |
tree | df5c3ad8c5a468ef67db3f158a405cf30e0ab929 /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | |
parent | f8f9f554687610053dda6242e6a3c90c3f1fc257 (diff) | |
download | bcm5719-llvm-a0cd0e11c9408a0aba64cc3a74d6a38c7c683847.tar.gz bcm5719-llvm-a0cd0e11c9408a0aba64cc3a74d6a38c7c683847.zip |
Improve comments a even more.
llvm-svn: 95740
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index 30c12a3ef30..b6801dc61d0 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -887,7 +887,6 @@ void DwarfException::EmitExceptionTable() { // Emit the Action Table. if (Actions.size() != 0) EOL("-- Action Record Table --"); - unsigned Iter = 1; for (SmallVectorImpl<ActionEntry>::const_iterator I = Actions.begin(), E = Actions.end(); I != E; ++I) { const ActionEntry &Action = *I; @@ -907,7 +906,7 @@ void DwarfException::EmitExceptionTable() { } // Emit the Catch TypeInfos. - Iter = TypeInfos.size(); + if (TypeInfos.size() != 0) EOL("-- Catch TypeInfos --"); for (std::vector<GlobalVariable *>::const_reverse_iterator I = TypeInfos.rbegin(), E = TypeInfos.rend(); I != E; ++I) { const GlobalVariable *GV = *I; @@ -915,7 +914,7 @@ void DwarfException::EmitExceptionTable() { if (GV) { O << *Asm->GetGlobalValueSymbol(GV); - EOL(Twine("TypeInfo ") + Twine(Iter--)); + EOL("TypeInfo"); } else { O << "0x0"; EOL(""); @@ -923,6 +922,7 @@ void DwarfException::EmitExceptionTable() { } // Emit the Exception Specifications. + if (FilterIds.size() != 0) EOL("-- Filter IDs --"); for (std::vector<unsigned>::const_iterator I = FilterIds.begin(), E = FilterIds.end(); I < E; ++I) { unsigned TypeID = *I; |