mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Explain why we skip DbgInfoIntrinsics when looking at line numbers in .gcno file emission.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210218 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6248abf28d
commit
7afb107a27
@ -454,6 +454,8 @@ static bool functionHasLines(Function *F) {
|
||||
for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) {
|
||||
for (BasicBlock::iterator I = BB->begin(), IE = BB->end();
|
||||
I != IE; ++I) {
|
||||
// Debug intrinsic locations correspond to the location of the
|
||||
// declaration, not necessarily any statements or expressions.
|
||||
if (isa<DbgInfoIntrinsic>(I)) continue;
|
||||
const DebugLoc &Loc = I->getDebugLoc();
|
||||
if (Loc.isUnknown()) continue;
|
||||
@ -516,6 +518,8 @@ void GCOVProfiler::emitProfileNotes() {
|
||||
uint32_t Line = 0;
|
||||
for (BasicBlock::iterator I = BB->begin(), IE = BB->end();
|
||||
I != IE; ++I) {
|
||||
// Debug intrinsic locations correspond to the location of the
|
||||
// declaration, not necessarily any statements or expressions.
|
||||
if (isa<DbgInfoIntrinsic>(I)) continue;
|
||||
const DebugLoc &Loc = I->getDebugLoc();
|
||||
if (Loc.isUnknown()) continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user