aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-11-06 06:55:02 +0000
committerJustin Bogner <mail@justinbogner.com>2014-11-06 06:55:02 +0000
commit58e41344f95725a5b3b12c3c9f5987abdc367494 (patch)
tree0f5807adf5810db868837c46b7c1f2825028cd43 /llvm/lib/Object/COFFObjectFile.cpp
parente4f47f08a389a11348bb60b3b3e744f6ea55ffcc (diff)
downloadllvm-58e41344f95725a5b3b12c3c9f5987abdc367494.zip
llvm-58e41344f95725a5b3b12c3c9f5987abdc367494.tar.gz
llvm-58e41344f95725a5b3b12c3c9f5987abdc367494.tar.bz2
GCOV: Make sure that function idents in the .gcda and .gcno match
When generating gcov compatible profiling, we sometimes skip emitting data for functions for one reason or another. However, this was emitting different function IDs in the .gcno and .gcda files, because the .gcno case was using the loop index before skipping functions and the .gcda the array index after. This resulted in completely invalid gcov data. This fixes the problem by making the .gcno loop track the ID separately from the loop index. llvm-svn: 221441
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions