[PATCH] D19522: Read discriminators correctly from object file.

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 12:46:14 PDT 2016


dblaikie added inline comments.

================
Comment at: test/DebugInfo/X86/discriminator2.ll:9
@@ +8,3 @@
+; #3 void baz() {
+; #4   foo/*discriminator 1*/(bar(),
+; #5       bar());bar()/*discriminator 1*/;
----------------
Would it be simpler/sufficient to do this:

  void f1();
  void f2() {
    f1(); f1();
    f1(); f1();
  }

(with column info off? Or, to keep column info on, #define CALLS f1(); f1() and have the body of the function be:
  CALLS;
  CALLS;
)


http://reviews.llvm.org/D19522





More information about the llvm-commits mailing list