[llvm-commits] [llvm] r95740 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp

Bill Wendling isanbard at gmail.com
Tue Feb 9 16:59:47 PST 2010


Author: void
Date: Tue Feb  9 18:59:47 2010
New Revision: 95740

URL: http://llvm.org/viewvc/llvm-project?rev=95740&view=rev
Log:
Improve comments a even more.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp?rev=95740&r1=95739&r2=95740&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp Tue Feb  9 18:59:47 2010
@@ -887,7 +887,6 @@
 
   // 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 @@
   }
 
   // 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 @@
 
     if (GV) {
       O << *Asm->GetGlobalValueSymbol(GV);
-      EOL(Twine("TypeInfo ") + Twine(Iter--));
+      EOL("TypeInfo");
     } else {
       O << "0x0";
       EOL("");
@@ -923,6 +922,7 @@
   }
 
   // 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;





More information about the llvm-commits mailing list