diff options
| author | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-12-19 19:41:48 +0000 |
|---|---|---|
| committer | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-12-19 19:41:48 +0000 |
| commit | 0334a047df7a1b9592221ac345e6c0663e56891d (patch) | |
| tree | 4d4b9834badde499996c7dc01e9350c56e6d0b1f /clang/lib/Driver/ToolChains.h | |
| parent | f48a1f54dd7ca643d92044ad13f33568e725ec4a (diff) | |
| download | bcm5719-llvm-0334a047df7a1b9592221ac345e6c0663e56891d.tar.gz bcm5719-llvm-0334a047df7a1b9592221ac345e6c0663e56891d.zip | |
Driver part of debugger tuning.
Adds driver options named -glldb and -gsce to mean -g plus tuning for
lldb and SCE debuggers respectively; the existing -ggdb option does
the same for gdb. Existing options -ggdb0, -ggdb1 etc. unpack into
-ggdb -g<N>. (There will not be -glldb<N> or -gsce<N> options.) The
tuning gets a target-specific default in the driver, and is passed
into cc1 with the new -debugger-tuning option.
As fallout, fixes where '-gsplit-dwarf -g0' would ignore the -g0 part
on Linux.
Differential Revision: http://reviews.llvm.org/D15651
llvm-svn: 256104
Diffstat (limited to 'clang/lib/Driver/ToolChains.h')
| -rw-r--r-- | clang/lib/Driver/ToolChains.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains.h b/clang/lib/Driver/ToolChains.h index 2661e3d71f0..f4b6b1529b3 100644 --- a/clang/lib/Driver/ToolChains.h +++ b/clang/lib/Driver/ToolChains.h @@ -566,6 +566,9 @@ public: // Until dtrace (via CTF) and LLDB can deal with distributed debug info, // Darwin defaults to standalone/full debug info. bool GetDefaultStandaloneDebug() const override { return true; } + llvm::DebuggerKind getDefaultDebuggerTuning() const override { + return llvm::DebuggerKind::LLDB; + } /// } @@ -727,6 +730,9 @@ public: // Until dtrace (via CTF) and LLDB can deal with distributed debug info, // FreeBSD defaults to standalone/full debug info. bool GetDefaultStandaloneDebug() const override { return true; } + llvm::DebuggerKind getDefaultDebuggerTuning() const override { + return llvm::DebuggerKind::LLDB; + } protected: Tool *buildAssembler() const override; @@ -1122,6 +1128,10 @@ public: return 2; // SSPStrong } + llvm::DebuggerKind getDefaultDebuggerTuning() const override { + return llvm::DebuggerKind::SCE; + } + SanitizerMask getSupportedSanitizers() const override; protected: |

