[PATCH] D37364: [DWARF] Line 0 should not have a discriminator
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 1 12:56:25 PDT 2017
dblaikie added a comment.
+Dehao to check on the semantics of this
================
Comment at: test/CodeGen/Generic/dbg-line-0-no-discriminator.ll:7-15
+; int main() {
+; unsigned int x = 0U;
+; static int const limit = 100000U;
+; for (volatile unsigned int i = 0; i < limit; ++i) {
+; if ((i & 0x40) == 0)
+; x += i;
+; }
----------------
Looks like test/DebugInfo/X86/discriminator2.ll might provide a simpler example code that creates discriminators using distinct call sites on the same source line? (maybe not - but was hoping for something a bit simpler/more direct than the code here)
https://reviews.llvm.org/D37364
More information about the llvm-commits
mailing list