diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-08-31 13:56:14 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-08-31 13:56:14 +0000 |
commit | 80e1b5eb3486758ba67cf311e3afad7c1a56deda (patch) | |
tree | 5b3b926ae629eaca499ae915ee5e33ff5601803e /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 2e5700f0388b4857e331d0ec5f887cddcc616d85 (diff) | |
download | bcm5719-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/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index b25d92bad6e..4ac79293282 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -568,6 +568,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, unsigned Val = llvm::StringSwitch<unsigned>(A->getValue()) .Case("line-tables-only", codegenoptions::DebugLineTablesOnly) + .Case("line-directives-only", codegenoptions::DebugDirectivesOnly) .Case("limited", codegenoptions::LimitedDebugInfo) .Case("standalone", codegenoptions::FullDebugInfo) .Default(~0U); |