1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/tools/bugpoint
Michael Ilseman ae58e6368d 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
..
BugDriver.cpp bugpoint: Return Errors instead of passing around strings 2016-09-06 17:18:22 +00:00
BugDriver.h bugpoint: Return Errors instead of passing around strings 2016-09-06 17:18:22 +00:00
bugpoint.cpp bugpoint: Return Errors instead of passing around strings 2016-09-06 17:18:22 +00:00
CMakeLists.txt Ensure Polly linking works without BUILD_SHARED_LIBS 2016-09-14 03:09:48 +00:00
CrashDebugger.cpp Add -strip-nonlinetable-debuginfo capability 2016-10-06 17:58:38 +00:00
ExecutionDriver.cpp bugpoint: Return Errors instead of passing around strings 2016-09-06 17:18:22 +00:00
ExtractFunction.cpp bugpoint: clang-format all of bugpoint. NFC 2016-09-02 01:21:37 +00:00
FindBugs.cpp bugpoint: Return Errors instead of passing around strings 2016-09-06 17:18:22 +00:00
ListReducer.h bugpoint: Return Errors instead of passing around strings 2016-09-06 17:18:22 +00:00
LLVMBuild.txt Wrap some long lines in LLVMBuild files. NFC 2015-06-12 18:44:57 +00:00
Miscompilation.cpp Retire bugpoint's -R. hack. 2016-10-01 07:34:18 +00:00
OptimizerDriver.cpp bugpoint: clang-format all of bugpoint. NFC 2016-09-02 01:21:37 +00:00
ToolRunner.cpp Retire bugpoint's -R. hack. 2016-10-01 07:34:18 +00:00
ToolRunner.h bugpoint: Return Errors instead of passing around strings 2016-09-06 17:18:22 +00:00