[llvm] r269859 - [DwarfDebug] Make tuning predicates private, should be used only in ctor.
Paul Robinson via llvm-commits
llvm-commits at lists.llvm.org
Tue May 17 15:53:21 PDT 2016
Author: probinson
Date: Tue May 17 17:53:20 2016
New Revision: 269859
URL: http://llvm.org/viewvc/llvm-project?rev=269859&view=rev
Log:
[DwarfDebug] Make tuning predicates private, should be used only in ctor.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h?rev=269859&r1=269858&r2=269859&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h Tue May 17 17:53:20 2016
@@ -292,6 +292,16 @@ class DwarfDebug : public DebugHandlerBa
// 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
More information about the llvm-commits
mailing list