diff options
author | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-12-16 19:58:30 +0000 |
---|---|---|
committer | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-12-16 19:58:30 +0000 |
commit | 6c27a2c40ed1164a66b2f62604afc948bdc66d38 (patch) | |
tree | 2242aca251a9b6a6e9cc6ac5dff446e514ce45aa /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 1f5d84545208f0453ecfe856d74f11c25b9a4aaf (diff) | |
download | bcm5719-llvm-6c27a2c40ed1164a66b2f62604afc948bdc66d38.tar.gz bcm5719-llvm-6c27a2c40ed1164a66b2f62604afc948bdc66d38.zip |
Set debugger tuning from TargetOptions (NFC)
Differential Revision: http://reviews.llvm.org/D15427
llvm-svn: 255810
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 477ebe1d638..3466f3469f1 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -77,17 +77,6 @@ static cl::opt<bool> GenerateARangeSection("generate-arange-section", cl::desc("Generate dwarf aranges"), cl::init(false)); -static cl::opt<DebuggerKind> -DebuggerTuningOpt("debugger-tune", - cl::desc("Tune debug info for a particular debugger"), - cl::init(DebuggerKind::Default), - cl::values( - clEnumValN(DebuggerKind::GDB, "gdb", "gdb"), - clEnumValN(DebuggerKind::LLDB, "lldb", "lldb"), - clEnumValN(DebuggerKind::SCE, "sce", - "SCE targets (e.g. PS4)"), - clEnumValEnd)); - namespace { enum DefaultOnOff { Default, Enable, Disable }; } @@ -228,10 +217,10 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M) CurMI = nullptr; Triple TT(Asm->getTargetTriple()); - // Make sure we know our "debugger tuning." The command-line option takes + // Make sure we know our "debugger tuning." The target option takes // precedence; fall back to triple-based defaults. - if (DebuggerTuningOpt != DebuggerKind::Default) - DebuggerTuning = DebuggerTuningOpt; + if (Asm->TM.Options.DebuggerTuning != DebuggerKind::Default) + DebuggerTuning = Asm->TM.Options.DebuggerTuning; else if (IsDarwin || TT.isOSFreeBSD()) DebuggerTuning = DebuggerKind::LLDB; else if (TT.isPS4CPU()) |