diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-10-02 00:31:00 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-10-02 00:31:00 +0000 |
| commit | 5eec02a399f036cda79690751f3ae6ccedfc250e (patch) | |
| tree | 8021778e328334b1a68f77a150524a846f72a115 /clang/lib/CodeGen/CodeGenFunction.cpp | |
| parent | 36aa17a4e3d6b460c48b8151e73f30656e89b8c0 (diff) | |
| download | llvm-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
