[DwarfDebug] Make tuning predicates private, should be used only in ctor.

llvm-svn: 269859
This commit is contained in:
Paul Robinson 2016-05-17 22:53:20 +00:00
parent b648399f9f
commit 101772128a
1 changed files with 10 additions and 9 deletions

View File

@ -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