summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-08-31 13:56:14 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-08-31 13:56:14 +0000
commit80e1b5eb3486758ba67cf311e3afad7c1a56deda (patch)
tree5b3b926ae629eaca499ae915ee5e33ff5601803e /clang/lib/CodeGen/CGDebugInfo.cpp
parent2e5700f0388b4857e331d0ec5f887cddcc616d85 (diff)
downloadbcm5719-llvm-80e1b5eb3486758ba67cf311e3afad7c1a56deda.tar.gz
bcm5719-llvm-80e1b5eb3486758ba67cf311e3afad7c1a56deda.zip
[DEBUGINFO] Add support for emission of the debug directives only.
Summary: Added option -gline-directives-only to support emission of the debug directives only. It behaves very similar to -gline-tables-only, except that it sets llvm debug info emission kind to llvm::DICompileUnit::DebugDirectivesOnly. Reviewers: echristo Subscribers: aprantl, fedor.sergeev, JDevlieghere, cfe-commits Differential Revision: https://reviews.llvm.org/D51177 llvm-svn: 341212
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 02d716abd6f..ac22dde9f96 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -557,6 +557,9 @@ void CGDebugInfo::CreateCompileUnit() {
case codegenoptions::DebugLineTablesOnly:
EmissionKind = llvm::DICompileUnit::LineTablesOnly;
break;
+ case codegenoptions::DebugDirectivesOnly:
+ EmissionKind = llvm::DICompileUnit::DebugDirectivesOnly;
+ break;
case codegenoptions::LimitedDebugInfo:
case codegenoptions::FullDebugInfo:
EmissionKind = llvm::DICompileUnit::FullDebug;
OpenPOWER on IntegriCloud