[llvm-commits] [llvm] r146079 - /llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp

Chad Rosier mcrosier at apple.com
Wed Dec 7 13:45:13 PST 2011


Author: mcrosier
Date: Wed Dec  7 15:45:13 2011
New Revision: 146079

URL: http://llvm.org/viewvc/llvm-project?rev=146079&view=rev
Log:
Update bcanalyzer to handle new USELIST_BLOCK/USELIST_CODE_ENTRY.

Modified:
    llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp

Modified: llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp?rev=146079&r1=146078&r2=146079&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp (original)
+++ llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp Wed Dec  7 15:45:13 2011
@@ -108,6 +108,7 @@
   case bitc::VALUE_SYMTAB_BLOCK_ID:  return "VALUE_SYMTAB";
   case bitc::METADATA_BLOCK_ID:      return "METADATA_BLOCK";
   case bitc::METADATA_ATTACHMENT_ID: return "METADATA_ATTACHMENT_BLOCK";
+  case bitc::USELIST_BLOCK_ID:       return "USELIST_BLOCK_ID";
   }
 }
 
@@ -264,6 +265,11 @@
     case bitc::METADATA_FN_NODE:     return "METADATA_FN_NODE";
     case bitc::METADATA_NAMED_NODE:  return "METADATA_NAMED_NODE";
     }
+  case bitc::USELIST_BLOCK_ID:
+    switch(CodeID) {
+    default:return 0;
+    case bitc::USELIST_CODE_ENTRY:   return "USELIST_CODE_ENTRY";
+    }
   }
 }
 





More information about the llvm-commits mailing list