mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
Cleanup. Avoid relying on specialization of std::distance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137191 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b1eede1281
commit
306afdf443
@ -134,9 +134,9 @@ public:
|
|||||||
block_iterator block_begin() const { return Blocks.begin(); }
|
block_iterator block_begin() const { return Blocks.begin(); }
|
||||||
block_iterator block_end() const { return Blocks.end(); }
|
block_iterator block_end() const { return Blocks.end(); }
|
||||||
|
|
||||||
/// getNumBlocks - Get the number of blocks in this loop.
|
/// getNumBlocks - Get the number of blocks in this loop in constant time.
|
||||||
unsigned getNumBlocks() const {
|
unsigned getNumBlocks() const {
|
||||||
return std::distance(block_begin(), block_end());
|
return Blocks.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// isLoopExiting - True if terminator in the block can branch to another
|
/// isLoopExiting - True if terminator in the block can branch to another
|
||||||
|
Loading…
x
Reference in New Issue
Block a user