Hi Devang, It does not make sense to have .ll test cases in the Clang test suite for this kind of thing (we do have some for testing integrated LLVM tool support, which is an explicit Clang feature).
It doesn't look like this is being used either, can we take it out please? - Daniel On Mon, Sep 13, 2010 at 1:46 PM, Devang Patel <[email protected]> wrote: > Author: dpatel > Date: Mon Sep 13 15:46:23 2010 > New Revision: 113780 > > URL: http://llvm.org/viewvc/llvm-project?rev=113780&view=rev > Log: > Recognize .ll as input files. > Handle %test_debuginfo on a RUN command line. > > This set up now allows one to write small test cases to check debug info. > e.g. > > ; RUN: %clang -O0 -g %s -c -o %t.o > ; RUN: %clang %t.o -o %t.out > ; RUN: %test_debuginfo %s %t.out > > define i32 @f1(i32 %i) nounwind ssp { > ; DEBUGGER: break f1 > ; DEBUGGER: r > ; DEBUGGER: p i > ; CHECK: $1 = 42 > entry: > %i.addr = alloca i32, align 4 > ... > ... > } > > It is also possible now to write test cases in c/c++. > The plan is to store these debug info testcases in a separate place. > > Modified: > cfe/trunk/test/lit.cfg > > Modified: cfe/trunk/test/lit.cfg > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=113780&r1=113779&r2=113780&view=diff > ============================================================================== > --- cfe/trunk/test/lit.cfg (original) > +++ cfe/trunk/test/lit.cfg Mon Sep 13 15:46:23 2010 > @@ -16,7 +16,7 @@ > config.test_format = lit.formats.ShTest(execute_external) > > # suffixes: A list of file extensions to treat as test files. > -config.suffixes = ['.c', '.cpp', '.m', '.mm'] > +config.suffixes = ['.c', '.cpp', '.m', '.mm', '.ll'] > > # test_source_root: The root path where tests are located. > config.test_source_root = os.path.dirname(__file__) > @@ -131,6 +131,7 @@ > config.substitutions.append( ('%clangxx', ' ' + config.clang + > ' -ccc-clang-cxx -ccc-cxx ')) > config.substitutions.append( ('%clang', ' ' + config.clang + ' ') ) > +config.substitutions.append( ('%test_debuginfo', ' ' + config.llvm_src_root > + '/utils/test_debuginfo.pl ') ) > > # FIXME: Find nicer way to prohibit this. > config.substitutions.append( > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits > _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
