aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-08-14 10:30:13 -0700
committerFangrui Song <i@maskray.me>2023-08-14 10:30:13 -0700
commit406e81b79d26dae6838cc69d10a3e22635da09ef (patch)
treedb4f79c493f8670376d52b92cc6ce929175f8666 /clang/lib/Frontend/CompilerInvocation.cpp
parente4b2f2d4a61780dc333077e44449437158119a03 (diff)
downloadllvm-406e81b79d26dae6838cc69d10a3e22635da09ef.zip
llvm-406e81b79d26dae6838cc69d10a3e22635da09ef.tar.gz
llvm-406e81b79d26dae6838cc69d10a3e22635da09ef.tar.bz2
[gcov] Ignore blocks from another file
Constructs such as inline variables, #line, and #include can create lexical blocks with a different filename. GCOVProfiling and llvm-cov gcov currently don't handle such cases (see GCOVLines::writeOut and GCOVFile::readGCNO) and would incorrectly attribute the line number to the current file. For now, ignore such blocks. Missing line execution counts is better than wrong ones. --- As a workaround that Apple targets don't use -mconstructor-aliases yet, allow line execution count 4 on the A::A line (1f34e282e8066281eb1447e21e44a2a2e9983e79).
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions