mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
llvm-cov: Use uint32_t for loop variables to be more consistent.
The loop bounds here are uint32_t variables, so it makes sense for the loop variables to have the same type. Patch by Yuchen Wu! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193192 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0a2463c990
commit
67fa53989a
@ -117,7 +117,7 @@ bool GCOVFunction::read(GCOVBuffer &Buff, GCOV::GCOVFormat Format) {
|
|||||||
(void)BlockTagFound;
|
(void)BlockTagFound;
|
||||||
assert(BlockTagFound && "Block Tag not found!");
|
assert(BlockTagFound && "Block Tag not found!");
|
||||||
uint32_t BlockCount = Buff.readInt();
|
uint32_t BlockCount = Buff.readInt();
|
||||||
for (int i = 0, e = BlockCount; i != e; ++i) {
|
for (uint32_t i = 0, e = BlockCount; i != e; ++i) {
|
||||||
Buff.readInt(); // Block flags;
|
Buff.readInt(); // Block flags;
|
||||||
Blocks.push_back(new GCOVBlock(i));
|
Blocks.push_back(new GCOVBlock(i));
|
||||||
}
|
}
|
||||||
@ -127,7 +127,7 @@ bool GCOVFunction::read(GCOVBuffer &Buff, GCOV::GCOVFormat Format) {
|
|||||||
uint32_t EdgeCount = (Buff.readInt() - 1) / 2;
|
uint32_t EdgeCount = (Buff.readInt() - 1) / 2;
|
||||||
uint32_t BlockNo = Buff.readInt();
|
uint32_t BlockNo = Buff.readInt();
|
||||||
assert(BlockNo < BlockCount && "Unexpected Block number!");
|
assert(BlockNo < BlockCount && "Unexpected Block number!");
|
||||||
for (int i = 0, e = EdgeCount; i != e; ++i) {
|
for (uint32_t i = 0, e = EdgeCount; i != e; ++i) {
|
||||||
Blocks[BlockNo]->addEdge(Buff.readInt());
|
Blocks[BlockNo]->addEdge(Buff.readInt());
|
||||||
Buff.readInt(); // Edge flag
|
Buff.readInt(); // Edge flag
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user