diff options
author | Paul Robinson <paul.robinson@sony.com> | 2016-05-17 22:53:20 +0000 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2016-05-17 22:53:20 +0000 |
commit | 101772128a21246571d8874fb59386e25187623f (patch) | |
tree | 08896e6168c5e68cf69df60c3b90582338e607ad | |
parent | b648399f9f331632a893dad74775398dc20e5664 (diff) | |
download | bcm5719-llvm-101772128a21246571d8874fb59386e25187623f.tar.gz bcm5719-llvm-101772128a21246571d8874fb59386e25187623f.zip |
[DwarfDebug] Make tuning predicates private, should be used only in ctor.
llvm-svn: 269859
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 44a0dc0a032..2c2391e85a4 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -292,6 +292,16 @@ class DwarfDebug : public DebugHandlerBase { // Identify a debugger for "tuning" the debug info. DebuggerKind DebuggerTuning; + /// \defgroup DebuggerTuning Predicates to tune DWARF for a given debugger. + /// + /// Returns whether we are "tuning" for a given debugger. + /// Should be used only within the constructor, to set feature flags. + /// @{ + bool tuneForGDB() const { return DebuggerTuning == DebuggerKind::GDB; } + bool tuneForLLDB() const { return DebuggerTuning == DebuggerKind::LLDB; } + bool tuneForSCE() const { return DebuggerTuning == DebuggerKind::SCE; } + /// @} + MCDwarfDwoLineTable *getDwoLineTable(const DwarfCompileUnit &); const SmallVectorImpl<std::unique_ptr<DwarfCompileUnit>> &getUnits() { @@ -489,15 +499,6 @@ public: /// DWARF4 format. bool useDWARF2Bitfields() const { return UseDWARF2Bitfields; } - /// \defgroup DebuggerTuning Predicates to tune DWARF for a given debugger. - /// - /// Returns whether we are "tuning" for a given debugger. - /// @{ - bool tuneForGDB() const { return DebuggerTuning == DebuggerKind::GDB; } - bool tuneForLLDB() const { return DebuggerTuning == DebuggerKind::LLDB; } - bool tuneForSCE() const { return DebuggerTuning == DebuggerKind::SCE; } - /// @} - // Experimental DWARF5 features. /// Returns whether or not to emit tables that dwarf consumers can |