]> granicus.if.org Git - llvm/commit
Linker: Stop using -gmlt test/Linker/subprogram-linkonce-weak.ll
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 25 Mar 2015 21:36:41 +0000 (21:36 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 25 Mar 2015 21:36:41 +0000 (21:36 +0000)
commit00aafa5d73ebd243ab052cb3a1c82706b3ec26f8
tree2b9661a8929336cdc8f93136119a6af2fb6380e8
parent5b99ebad2c1c241366a7c145ab3d43b26828ee36
Linker: Stop using -gmlt test/Linker/subprogram-linkonce-weak.ll

As dblaikie pointed out, if I stop setting `emissionKind: 2` then the
backend won't do magical things on Linux vs. Darwin.  I had wrongly
assumed that there were stricter requirements on the input if we weren't
in line-tables-only mode, but apparently not.

With that knowledge, clean up this testcase a little more.

  - Set `emissionKind: 1`.
  - Add back checks for the weak version of @foo.
  - Check more robustly that we have the right subprograms by checking
    the `DW_AT_decl_file` and `DW_AT_decl_line` which now show up.
  - Check the line table in isolation (since it's no longer doubling as
    an indirect test for the subprogram of the weak version of @foo).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233221 91177308-0d34-0410-b5e6-96231b3b80d8
test/Linker/Inputs/subprogram-linkonce-weak.ll
test/Linker/subprogram-linkonce-weak.ll