Skip to content

Commit 44500be

Browse files
committed
[HashRecognize] Strip LLVM_DUMP_METHOD from print fns
1 parent 719e574 commit 44500be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/include/llvm/Analysis/HashRecognize.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ using ErrBits = std::tuple<KnownBits, unsigned, bool>;
3434

3535
/// A custom std::array with 256 entries, that also has a print function.
3636
struct CRCTable : public std::array<APInt, 256> {
37-
LLVM_DUMP_METHOD void print(raw_ostream &OS) const;
37+
void print(raw_ostream &OS) const;
3838

3939
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
4040
LLVM_DUMP_METHOD void dump() const;
@@ -91,7 +91,7 @@ class HashRecognize {
9191
// and return a 256-entry CRC table.
9292
CRCTable genSarwateTable(const APInt &GenPoly, bool ByteOrderSwapped) const;
9393

94-
LLVM_DUMP_METHOD void print(raw_ostream &OS) const;
94+
void print(raw_ostream &OS) const;
9595

9696
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
9797
LLVM_DUMP_METHOD void dump() const;

llvm/lib/Analysis/HashRecognize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ struct RecurrenceInfo {
274274
RecurrenceInfo(const Loop &L) : L(L) {}
275275
operator bool() const { return BO; }
276276

277-
LLVM_DUMP_METHOD void print(raw_ostream &OS, unsigned Indent = 0) const {
277+
void print(raw_ostream &OS, unsigned Indent = 0) const {
278278
OS.indent(Indent) << "Phi: ";
279279
Phi->print(OS);
280280
OS << "\n";

0 commit comments

Comments
 (0)