Skip to content

Commit 0c53f68

Browse files
Fix formatting
1 parent 7d05067 commit 0c53f68

File tree

2 files changed

+36
-37
lines changed

2 files changed

+36
-37
lines changed

llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -174,32 +174,32 @@ inline bool operator==(const DWARFExpression::iterator &LHS,
174174
// allows DWARFExpression to be used from code which can't have dependencies on
175175
// those higher-level structures.
176176

177-
class DWARFUnit;
178-
struct DIDumpOptions;
179-
class raw_ostream;
177+
class DWARFUnit;
178+
struct DIDumpOptions;
179+
class raw_ostream;
180180

181181
class DWARFExpressionPrinter {
182-
public:
183-
/// Print a Dwarf expression/
184-
/// \param E to be printed
185-
/// \param OS to this stream
186-
/// \param GetNameForDWARFReg callback to return dwarf register name
187-
static void print(const DWARFExpression *E, raw_ostream &OS,
188-
DIDumpOptions DumpOpts, DWARFUnit *U, bool IsEH = false);
189-
190-
/// Print the expression in a format intended to be compact and useful to a
191-
/// user, but not perfectly unambiguous, or capable of representing every
192-
/// valid DWARF expression. Returns true if the expression was sucessfully
193-
/// printed.
194-
///
195-
/// \param E to be printed
196-
/// \param OS to this stream
197-
/// \param GetNameForDWARFReg callback to return dwarf register name
198-
///
199-
/// \returns true if the expression was successfully printed
200-
static bool printCompact(const DWARFExpression *E, raw_ostream &OS,
201-
std::function<StringRef(uint64_t RegNum, bool IsEH)>
202-
GetNameForDWARFReg = nullptr);
182+
public:
183+
/// Print a Dwarf expression/
184+
/// \param E to be printed
185+
/// \param OS to this stream
186+
/// \param GetNameForDWARFReg callback to return dwarf register name
187+
static void print(const DWARFExpression *E, raw_ostream &OS,
188+
DIDumpOptions DumpOpts, DWARFUnit *U, bool IsEH = false);
189+
190+
/// Print the expression in a format intended to be compact and useful to a
191+
/// user, but not perfectly unambiguous, or capable of representing every
192+
/// valid DWARF expression. Returns true if the expression was sucessfully
193+
/// printed.
194+
///
195+
/// \param E to be printed
196+
/// \param OS to this stream
197+
/// \param GetNameForDWARFReg callback to return dwarf register name
198+
///
199+
/// \returns true if the expression was successfully printed
200+
static bool printCompact(const DWARFExpression *E, raw_ostream &OS,
201+
std::function<StringRef(uint64_t RegNum, bool IsEH)>
202+
GetNameForDWARFReg = nullptr);
203203

204204
/// Pretty print a register opcode and operands.
205205
/// \param U within the context of this Dwarf unit, if any.
@@ -210,18 +210,18 @@ class DWARFExpressionPrinter {
210210
///
211211
/// returns true if the Op was successfully printed
212212
static bool prettyPrintRegisterOp(DWARFUnit *U, raw_ostream &OS,
213-
DIDumpOptions DumpOpts, uint8_t Opcode,
214-
ArrayRef<uint64_t> Operands);
215-
216-
private:
217-
static bool printOp(const DWARFExpression::Operation *Op, raw_ostream &OS,
218-
DIDumpOptions DumpOpts, const DWARFExpression *Expr,
219-
DWARFUnit *U);
220-
221-
static void prettyPrintBaseTypeRef(DWARFUnit *U, raw_ostream &OS,
222-
DIDumpOptions DumpOpts,
223-
ArrayRef<uint64_t> Operands,
224-
unsigned Operand);
213+
DIDumpOptions DumpOpts, uint8_t Opcode,
214+
ArrayRef<uint64_t> Operands);
215+
216+
private:
217+
static bool printOp(const DWARFExpression::Operation *Op, raw_ostream &OS,
218+
DIDumpOptions DumpOpts, const DWARFExpression *Expr,
219+
DWARFUnit *U);
220+
221+
static void prettyPrintBaseTypeRef(DWARFUnit *U, raw_ostream &OS,
222+
DIDumpOptions DumpOpts,
223+
ArrayRef<uint64_t> Operands,
224+
unsigned Operand);
225225
};
226226

227227
} // end namespace llvm

llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,5 +533,4 @@ bool DWARFExpressionPrinter::printCompact(
533533
return printCompactDWARFExpr(OS, E->begin(), E->end(), GetNameForDWARFReg);
534534
}
535535

536-
537536
} // namespace llvm

0 commit comments

Comments
 (0)