[llvm-commits] CVS: llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
Chris Lattner
sabre at nondot.org
Fri May 4 18:29:48 PDT 2007
Changes in directory llvm/tools/llvm-bcanalyzer:
llvm-bcanalyzer.cpp updated: 1.18 -> 1.19
---
Log message:
do not charge subblock sizes to the parent block.
---
Diffs of the changes: (+7 -1)
llvm-bcanalyzer.cpp | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletion(-)
Index: llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
diff -u llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp:1.18 llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp:1.19
--- llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp:1.18 Fri May 4 19:17:42 2007
+++ llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp Fri May 4 20:29:31 2007
@@ -312,11 +312,17 @@
}
return false;
}
- case bitc::ENTER_SUBBLOCK:
+ case bitc::ENTER_SUBBLOCK: {
+ uint64_t SubBlockBitStart = Stream.GetCurrentBitNo();
if (ParseBlock(Stream, IndentLevel+1))
return true;
++BlockStats.NumSubBlocks;
+ uint64_t SubBlockBitEnd = Stream.GetCurrentBitNo();
+
+ // Don't include subblock sizes in the size of this block.
+ BlockBitStart += SubBlockBitEnd-SubBlockBitStart;
break;
+ }
case bitc::DEFINE_ABBREV:
Stream.ReadAbbrevRecord();
++BlockStats.NumAbbrevs;
More information about the llvm-commits
mailing list