aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-10-02 00:31:00 +0000
committerJustin Bogner <mail@justinbogner.com>2014-10-02 00:31:00 +0000
commit5eec02a399f036cda79690751f3ae6ccedfc250e (patch)
tree8021778e328334b1a68f77a150524a846f72a115 /clang/lib/CodeGen/CodeGenFunction.cpp
parent36aa17a4e3d6b460c48b8151e73f30656e89b8c0 (diff)
downloadllvm-5eec02a399f036cda79690751f3ae6ccedfc250e.zip
llvm-5eec02a399f036cda79690751f3ae6ccedfc250e.tar.gz
llvm-5eec02a399f036cda79690751f3ae6ccedfc250e.tar.bz2
InstrProf: Simplify counting a file's regions when writing coverage (NFC)
When writing a coverage mapping we iterate through the mapping regions in order of FileID, but we were then repeatedly searching from the beginning of the list to count the number of regions with a given FileID. It is simpler and more efficient to search forward from the current iterator to find the number of regions. llvm-svn: 218842
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions