1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/include/llvm
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
..
ADT [Triple] Add triple for Fuchsia 2016-10-06 05:17:26 +00:00
Analysis Modify df_iterator to support post-order actions 2016-10-05 21:36:16 +00:00
AsmParser
Bitcode [thinlto] Basic thinlto fdo heuristic 2016-09-26 20:37:32 +00:00
CodeGen Move AArch64BranchRelaxation to generic code 2016-10-06 15:38:53 +00:00
Config Split a comment into generic description and note about the specific 2016-10-01 08:05:50 +00:00
DebugInfo [codeview] Translate bitpiece metadata to DEFRANGE_SUBFIELD* records 2016-10-05 21:21:33 +00:00
Demangle Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00
ExecutionEngine [RTDyld] Fix a bug in RTDyldMemoryManager::deregisterEHFrames. 2016-10-03 17:34:56 +00:00
IR Add -strip-nonlinetable-debuginfo capability 2016-10-06 17:58:38 +00:00
IRReader [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
LibDriver [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
LineEditor Apply clang-tidy's misc-move-constructor-init throughout LLVM. 2016-05-27 14:27:24 +00:00
Linker Linker: teach the IR mover to return llvm::Error. 2016-05-27 05:21:35 +00:00
LTO Revert "Use StringRef in LTOModule implementation (NFC)" 2016-10-06 15:12:22 +00:00
MC Allow the caller to pass in the hash. 2016-10-05 18:46:21 +00:00
Object Centralize sh_entsize checking. 2016-10-06 15:08:10 +00:00
ObjectYAML [macho2yaml] Don't write empty linkedit data 2016-08-17 21:46:04 +00:00
Option Generalize ArgList::AddAllArgs more 2016-09-29 19:47:58 +00:00
Passes [PM] Significantly refactor the pass pipeline parsing to be easier to 2016-08-03 03:21:41 +00:00
ProfileData NFC fix class members initialization 2016-09-30 21:05:52 +00:00
Support Add missing #include from r283039. Found by modules build. 2016-10-05 22:40:54 +00:00
TableGen [TableGen] Autobrief-ize Record. NFC. 2016-07-14 14:53:14 +00:00
Target BranchRelaxation: Support expanding unconditional branches 2016-10-06 16:20:41 +00:00
Transforms Add -strip-nonlinetable-debuginfo capability 2016-10-06 17:58:38 +00:00
CMakeLists.txt
InitializePasses.h Add -strip-nonlinetable-debuginfo capability 2016-10-06 17:58:38 +00:00
LinkAllIR.h Remove every uses of getGlobalContext() in LLVM (but the C API) 2016-04-14 21:59:01 +00:00
LinkAllPasses.h Add a counter-function insertion pass 2016-09-01 09:42:39 +00:00
module.modulemap [modules] Re-enable some previously excluded files. 2016-09-13 14:41:35 +00:00
module.modulemap.build
Pass.h Use StringRef in Pass/PassManager APIs (NFC) 2016-10-01 02:56:57 +00:00
PassAnalysisSupport.h Apply clang-tidy's modernize-loop-convert to most of lib/Transforms. 2016-06-26 12:28:59 +00:00
PassInfo.h Use StringRef in Pass Info/Support API (NFC) 2016-10-01 04:03:30 +00:00
PassRegistry.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
PassSupport.h Use StringRef in Pass Info/Support API (NFC) 2016-10-01 04:03:30 +00:00