[PATCH] D67283: [GCOV] Skip artificial functions from being emitted

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 14:08:00 PST 2019


aprantl added inline comments.


================
Comment at: llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp:718
+      // Artificial functions such as global initializers
+      if (Line > 0)
+        Func.getBlock(&EntryBlock).getFile(Filename).addLine(Line);
----------------
The proper way of detecting artificial functions is look for SPFlagArtificial / DISubprogram::isArtificial(), not the line number.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67283/new/

https://reviews.llvm.org/D67283





More information about the llvm-commits mailing list