Skip to content

Commit a229a57

Browse files
committed
[llvm] revert dump guards from llvm::ScaledNumber
1 parent 4bdd116 commit a229a57

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

llvm/include/llvm/Support/ScaledNumber.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,7 @@ class ScaledNumberBase {
424424
public:
425425
static constexpr int DefaultPrecision = 10;
426426

427-
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
428-
LLVM_DUMP_METHOD static void dump(uint64_t D, int16_t E, int Width);
429-
#endif
430-
427+
LLVM_ABI static void dump(uint64_t D, int16_t E, int Width);
431428
LLVM_ABI static raw_ostream &print(raw_ostream &OS, uint64_t D, int16_t E,
432429
int Width, unsigned Precision);
433430
LLVM_ABI static std::string toString(uint64_t D, int16_t E, int Width,
@@ -610,12 +607,7 @@ template <class DigitsT> class ScaledNumber : ScaledNumberBase {
610607
unsigned Precision = DefaultPrecision) const {
611608
return ScaledNumberBase::print(OS, Digits, Scale, Width, Precision);
612609
}
613-
614-
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
615-
LLVM_DUMP_METHOD void dump() const {
616-
return ScaledNumberBase::dump(Digits, Scale, Width);
617-
}
618-
#endif
610+
void dump() const { return ScaledNumberBase::dump(Digits, Scale, Width); }
619611

620612
ScaledNumber &operator+=(const ScaledNumber &X) {
621613
std::tie(Digits, Scale) =

llvm/lib/Support/ScaledNumber.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,7 @@ raw_ostream &ScaledNumberBase::print(raw_ostream &OS, uint64_t D, int16_t E,
317317
return OS << toString(D, E, Width, Precision);
318318
}
319319

320-
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
321-
LLVM_DUMP_METHOD void ScaledNumberBase::dump(uint64_t D, int16_t E, int Width) {
320+
void ScaledNumberBase::dump(uint64_t D, int16_t E, int Width) {
322321
print(dbgs(), D, E, Width, 0) << "[" << Width << ":" << D << "*2^" << E
323322
<< "]";
324323
}
325-
#endif

0 commit comments

Comments
 (0)