[llvm-commits] [PATCH] Fix for llvm-bcanalyzer
Peter Housel
housel at acm.org
Thu Feb 10 21:50:02 PST 2011
METADATA_ATTACHMENT2 records appear in METADATA_ATTACHMENT blocks, not in METADATA blocks:
Index: tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
===================================================================
--- tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp (revision 125330)
+++ tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp (working copy)
@@ -263,6 +263,7 @@
switch(CodeID) {
default:return 0;
case bitc::METADATA_ATTACHMENT: return "METADATA_ATTACHMENT";
+ case bitc::METADATA_ATTACHMENT2: return "METADATA_ATTACHMENT2";
}
case bitc::METADATA_BLOCK_ID:
switch(CodeID) {
@@ -277,7 +278,6 @@
case bitc::METADATA_NODE2: return "METADATA_NODE2";
case bitc::METADATA_FN_NODE2: return "METADATA_FN_NODE2";
case bitc::METADATA_NAMED_NODE2: return "METADATA_NAMED_NODE2";
- case bitc::METADATA_ATTACHMENT2: return "METADATA_ATTACHMENT2";
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110210/ea219704/attachment.html>
More information about the llvm-commits
mailing list