forked from OSchip/llvm-project
Extend ifdefs to more unused helper functions.
This fixes a buildbot failure with -Werror introduced by r309553 llvm-svn: 309572
This commit is contained in:
parent
53160cdc45
commit
94b8a87c8e
|
@ -350,6 +350,7 @@ static void printDebugLoc(const DebugLoc &DL, raw_ostream &CommentOS,
|
|||
CommentOS << " ]";
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
static void printExtendedName(raw_ostream &OS, const DILocalVariable *V,
|
||||
const DILocation *DL) {
|
||||
const LLVMContext &Ctx = V->getContext();
|
||||
|
@ -365,7 +366,6 @@ static void printExtendedName(raw_ostream &OS, const DILocalVariable *V,
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
void UserValue::print(raw_ostream &OS, const TargetRegisterInfo *TRI) {
|
||||
auto *DV = cast<DILocalVariable>(Variable);
|
||||
OS << "!\"";
|
||||
|
|
|
@ -562,6 +562,7 @@ bool Formula::hasRegsUsedByUsesOtherThan(size_t LUIdx,
|
|||
return false;
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
void Formula::print(raw_ostream &OS) const {
|
||||
bool First = true;
|
||||
if (BaseGV) {
|
||||
|
@ -598,7 +599,6 @@ void Formula::print(raw_ostream &OS) const {
|
|||
}
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
LLVM_DUMP_METHOD void Formula::dump() const {
|
||||
print(errs()); errs() << '\n';
|
||||
}
|
||||
|
@ -1394,6 +1394,7 @@ bool LSRFixup::isUseFullyOutsideLoop(const Loop *L) const {
|
|||
return !L->contains(UserInst);
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
void LSRFixup::print(raw_ostream &OS) const {
|
||||
OS << "UserInst=";
|
||||
// Store is common and interesting enough to be worth special-casing.
|
||||
|
@ -1417,7 +1418,6 @@ void LSRFixup::print(raw_ostream &OS) const {
|
|||
OS << ", Offset=" << Offset;
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
LLVM_DUMP_METHOD void LSRFixup::dump() const {
|
||||
print(errs()); errs() << '\n';
|
||||
}
|
||||
|
@ -1500,6 +1500,7 @@ void LSRUse::RecomputeRegs(size_t LUIdx, RegUseTracker &RegUses) {
|
|||
RegUses.dropRegister(S, LUIdx);
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
void LSRUse::print(raw_ostream &OS) const {
|
||||
OS << "LSR Use: Kind=";
|
||||
switch (Kind) {
|
||||
|
@ -1533,7 +1534,6 @@ void LSRUse::print(raw_ostream &OS) const {
|
|||
OS << ", widest fixup type: " << *WidestFixupType;
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
LLVM_DUMP_METHOD void LSRUse::dump() const {
|
||||
print(errs()); errs() << '\n';
|
||||
}
|
||||
|
@ -5320,6 +5320,7 @@ LSRInstance::LSRInstance(Loop *L, IVUsers &IU, ScalarEvolution &SE,
|
|||
ImplementSolution(Solution);
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
void LSRInstance::print_factors_and_types(raw_ostream &OS) const {
|
||||
if (Factors.empty() && Types.empty()) return;
|
||||
|
||||
|
@ -5364,7 +5365,6 @@ void LSRInstance::print_uses(raw_ostream &OS) const {
|
|||
}
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
void LSRInstance::print(raw_ostream &OS) const {
|
||||
print_factors_and_types(OS);
|
||||
print_fixups(OS);
|
||||
|
|
Loading…
Reference in New Issue