summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPaul Robinson <paul_robinson@playstation.sony.com>2015-12-18 23:41:11 +0000
committerPaul Robinson <paul_robinson@playstation.sony.com>2015-12-18 23:41:11 +0000
commita3ff2e4e02562c6732d87f7118ca663f9b3dae37 (patch)
treef46482243d01f0eb297b83efc1024960bb3db417 /clang/lib/Frontend/CompilerInvocation.cpp
parentbfc2dc7ab7dbc622966527d550bfe44b4296067b (diff)
downloadbcm5719-llvm-a3ff2e4e02562c6732d87f7118ca663f9b3dae37.tar.gz
bcm5719-llvm-a3ff2e4e02562c6732d87f7118ca663f9b3dae37.zip
CC1 part of debugger tuning; pass through setting from driver to LLVM.
Differential Revision: http://reviews.llvm.org/D15650 llvm-svn: 256063
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index c6068d7d94d..a03dded7076 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -405,6 +405,13 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK,
.Case("limited", CodeGenOptions::LimitedDebugInfo)
.Case("standalone", CodeGenOptions::FullDebugInfo));
}
+ if (Arg *A = Args.getLastArg(OPT_debugger_tuning_EQ)) {
+ Opts.setDebuggerTuning(
+ llvm::StringSwitch<llvm::DebuggerKind>(A->getValue())
+ .Case("gdb", llvm::DebuggerKind::GDB)
+ .Case("lldb", llvm::DebuggerKind::LLDB)
+ .Case("sce", llvm::DebuggerKind::SCE));
+ }
Opts.DwarfVersion = getLastArgIntValue(Args, OPT_dwarf_version_EQ, 0, Diags);
Opts.DebugColumnInfo = Args.hasArg(OPT_dwarf_column_info);
Opts.EmitCodeView = Args.hasArg(OPT_gcodeview);
OpenPOWER on IntegriCloud