hanchenye-llvm-project/llvm
Michael Ilseman d0a4db7632 Add -strip-nonlinetable-debuginfo capability
This adds a new function to DebugInfo.cpp that takes an llvm::Module
as input and removes all debug info metadata that is not directly
needed for line tables, thus effectively stripping all type and
variable information from the module.

The primary motivation for this feature was the bitcode work flow
(cf. http://lists.llvm.org/pipermail/llvm-dev/2016-June/100643.html
for more background). This is not wired up yet, but will be in
subsequent patches.  For testing, the new functionality is exposed to
opt with a -strip-nonlinetable-debuginfo option.

The secondary use-case (and one that works right now!) is as a
reduction pass in bugpoint. I added two new bugpoint options
(-disable-strip-debuginfo and -disable-strip-debug-types) to control
the new features. By default it will first attempt to remove all debug
information, then only the type info, and then proceed to hack at any
remaining MDNodes.

llvm-svn: 283473
2016-10-06 17:58:38 +00:00
..
bindings cmake: Install the OCaml libraries into a more correct path 2016-09-30 18:34:23 +00:00
cmake [cmake] Make LIT_COMMAND configurable and improve fallback support 2016-10-04 20:25:37 +00:00
docs [docs] Add PR to Lexicon 2016-10-06 16:39:22 +00:00
examples [Kaleidoscope] Make Chapter 2 use llvm::make_unique, rather than a helper. 2016-09-19 23:00:27 +00:00
include Add -strip-nonlinetable-debuginfo capability 2016-10-06 17:58:38 +00:00
lib Add -strip-nonlinetable-debuginfo capability 2016-10-06 17:58:38 +00:00
projects Enable in-tree builds of parallel-libs. 2016-09-09 21:34:12 +00:00
resources
runtimes [CMake] Fixing lit for runtimes directory 2016-09-15 06:14:13 +00:00
test Add -strip-nonlinetable-debuginfo capability 2016-10-06 17:58:38 +00:00
tools Add -strip-nonlinetable-debuginfo capability 2016-10-06 17:58:38 +00:00
unittests GlobalISel: fix misuse of using declaration in test. 2016-10-06 13:57:31 +00:00
utils FastISel: Remove unused/un-overridden entry points. NFCI. 2016-10-05 19:25:20 +00:00
.arcconfig project_id is from another era in phabricator land and does not provide any value. 2016-09-27 15:47:29 +00:00
.clang-format
.clang-tidy .clang-tidy: correct style name is 'camelBack' not 'lowerCase'. 2016-09-13 19:04:26 +00:00
.gitignore gitignore: ignore VS Code editor files 2016-09-02 22:54:26 +00:00
CMakeLists.txt [CMake] Force CMP0057 to NEW 2016-09-27 23:18:32 +00:00
CODE_OWNERS.TXT Take ownership of libLTO as discussed on llvm-dev. 2016-09-15 17:42:39 +00:00
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

Low Level Virtual Machine (LLVM)
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.