[PATCH] D11933: Extending debug ranges

Alex Lorenz via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 19 09:39:38 PDT 2015


arphaman added a comment.

Thanks!


================
Comment at: test/DebugInfo/MIR/extend-debug-range.mir:1
@@ +1,2 @@
+# RUN: llc -run-pass=extend-dbg-range-loc -o /dev/null %s | FileCheck %s
+
----------------
This test is target specific, so you have to add the -march or -mtriple option to llc's parameters.

The test should also be placed in a target specific subdirectory, something like 'DebugInfo/MIR/X86' will work well, but feel free to use another one. This target specific test directory also needs special check in the 'lit.local.cfg' file to make sure that the tests in that directory run only when the target is available. For X86, you can use a condition like this:

    if not 'X86' in config.root.targets:
        config.unsupported = True



http://reviews.llvm.org/D11933





More information about the llvm-commits mailing list