llvm-project/llvm/test
Michael Gottesman 823aaffd37 Update StripDeadDebugInfo to use DebugInfoFinder so that it is no longer stale to the point of not working and more resilient to debug info changes.
The current version of StripDeadDebugInfo became stale and no longer actually
worked since it was expecting an older version of debug info.

This patch updates it to use DebugInfoFinder and the modern DebugInfo classes as
much as possible to make it more redundent to such changes. Additionally, the
only place where that was avoided (the code where we replace the old sets with
the new), I call verify on the DIContextUnit implying that if the format changes
and my live set changes no longer make sense an assert will be hit. In order to
ensure that that occurs I have included a test case.

The actual stripping of the dead debug info follows the same strategy as was
used before in this class: find the live set and replace the old set in the
given compile unit (which may contain dead global variables/functions) with the
new live one.

llvm-svn: 189078
2013-08-23 00:23:24 +00:00
..
Analysis FileCheck-ize tests. 2013-08-22 00:51:19 +00:00
Assembler [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
Bindings/Ocaml [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
Bitcode Use -disable-output and to suppress output and don't use a temporary file unless we need one. 2013-08-20 23:00:25 +00:00
BugPoint [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
CodeGen [stack protector] Work around an issue with the BMOVPCB_CALL instruction on ARM by disabling does not return on __stack_chk_fail. 2013-08-22 23:45:24 +00:00
DebugInfo Update to remove the no-frame-pointer-elim-non-leaf flag if it was set to 'false'. 2013-08-22 21:28:54 +00:00
ExecutionEngine In LLVM FMA3 operands are dst, src1, src2, src3, however dst is not encoded as it is always src1. This was causing the encoding of the operands to be off by one. 2013-08-21 05:03:10 +00:00
Feature [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
FileCheck [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
Instrumentation DataFlowSanitizer: Replace non-instrumented aliases of instrumented functions, and vice versa, with wrappers. 2013-08-22 20:08:15 +00:00
Integer [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
JitListener [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
Linker [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
MC Fix ARM vcvt encoding when the number of fractional bits is zero. 2013-08-22 13:16:07 +00:00
Object MC CFG: Remap enough for data too, analoguous to r188873. 2013-08-21 19:40:28 +00:00
Other Update to remove the no-frame-pointer-elim-non-leaf flag if it was set to 'false'. 2013-08-22 21:28:54 +00:00
TableGen FileCheckize some tests. 2013-08-22 20:46:05 +00:00
Transforms Update StripDeadDebugInfo to use DebugInfoFinder so that it is no longer stale to the point of not working and more resilient to debug info changes. 2013-08-23 00:23:24 +00:00
Unit [tests] Update to use lit_config and lit package, as appropriate. 2013-08-09 16:22:05 +00:00
Verifier [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
YAMLParser
tools [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
CMakeLists.txt llvm/test/CMakeLists.txt: Add llvm-cov in "check-clang". 2013-07-08 08:44:36 +00:00
Makefile [tests] Remove dead VALGRIND and CLEANED_TESTSUITE makefile variables. 2013-08-08 20:59:27 +00:00
Makefile.tests Remove dead code from the makefile build system. 2013-07-25 20:25:31 +00:00
TestRunner.sh
lit.cfg [tests] Update fma3 check to work with Py3. 2013-08-21 22:26:44 +00:00
lit.site.cfg.in [tests] Update to use lit_config and lit package, as appropriate. 2013-08-09 16:22:05 +00:00