[Clang] implement -fno-eliminate-unused-debug-types
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 10 Aug 2020 21:52:37 +0000 (14:52 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Mon, 10 Aug 2020 22:08:48 +0000 (15:08 -0700)
commit4f2ad15db535873dda9bfe248a2771023b64a43c
treeac5ca03af28af9e704aed843d2dbe730687b6a85
parent41d4120017f99386a62a9c0aac25fd2a369d0e02
[Clang] implement -fno-eliminate-unused-debug-types

Fixes pr/11710.
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Resubmit after breaking Windows and OSX builds.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D80242
16 files changed:
clang/docs/ClangCommandLineReference.rst
clang/docs/CommandGuide/clang.rst
clang/docs/UsersManual.rst
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Basic/CodeGenOptions.h
clang/include/clang/Basic/DebugInfoOptions.h
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h
clang/lib/CodeGen/CGDecl.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/debug-info-unused-types.c [new file with mode: 0644]
clang/test/CodeGen/debug-info-unused-types.cpp [new file with mode: 0644]
clang/test/Driver/debug-options.c