[llvm] r263597 - llvm-bcanalyzer: Fix handling of attribute group entries
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 15 15:37:26 PDT 2016
Author: bogner
Date: Tue Mar 15 17:37:25 2016
New Revision: 263597
URL: http://llvm.org/viewvc/llvm-project?rev=263597&view=rev
Log:
llvm-bcanalyzer: Fix handling of attribute group entries
These were printing as "UnknownCode3", since we were looking for them
inside PARAMATTR blocks instead of PARAMATTR_GROUP blocks.
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=263597&r1=263596&r2=263597&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp (original)
+++ llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp Tue Mar 15 17:37:25 2016
@@ -188,6 +188,10 @@ static const char *GetCodeName(unsigned
// FIXME: Should these be different?
case bitc::PARAMATTR_CODE_ENTRY_OLD: return "ENTRY";
case bitc::PARAMATTR_CODE_ENTRY: return "ENTRY";
+ }
+ case bitc::PARAMATTR_GROUP_BLOCK_ID:
+ switch (CodeID) {
+ default: return nullptr;
case bitc::PARAMATTR_GRP_CODE_ENTRY: return "ENTRY";
}
case bitc::TYPE_BLOCK_ID_NEW:
More information about the llvm-commits
mailing list