From a3ff2e4e02562c6732d87f7118ca663f9b3dae37 Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Fri, 18 Dec 2015 23:41:11 +0000 Subject: CC1 part of debugger tuning; pass through setting from driver to LLVM. Differential Revision: http://reviews.llvm.org/D15650 llvm-svn: 256063 --- clang/lib/Frontend/CompilerInvocation.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index c6068d7..a03dded 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(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); -- cgit v1.1