aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-07-01 21:19:13 +0000
committerAlp Toker <alp@nuanti.com>2014-07-01 21:19:13 +0000
commitd8d510af9244490abbbc4b5157d6ed018cb92908 (patch)
tree0412fcf5d423c99070d62e1a289ff17c99fe5946 /llvm/lib/CodeGen/MachineScheduler.cpp
parent4d1a26dcc26d7844c8f4b99c9c41594f1abc9b69 (diff)
downloadllvm-d8d510af9244490abbbc4b5157d6ed018cb92908.zip
llvm-d8d510af9244490abbbc4b5157d6ed018cb92908.tar.gz
llvm-d8d510af9244490abbbc4b5157d6ed018cb92908.tar.bz2
Move remaining LLVM_ENABLE_DUMP conditionals out of the headers
This macro is sometimes defined manually but isn't (and doesn't need to be) in llvm-config.h so shouldn't appear in the headers, likewise NDEBUG. Instead switch them over to LLVM_DUMP_METHOD on the definitions. llvm-svn: 212130
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 8365330..0075242 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -478,14 +478,13 @@ void MachineSchedulerBase::print(raw_ostream &O, const Module* m) const {
// unimplemented
}
-#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+LLVM_DUMP_METHOD
void ReadyQueue::dump() {
dbgs() << Name << ": ";
for (unsigned i = 0, e = Queue.size(); i < e; ++i)
dbgs() << Queue[i]->NodeNum << " ";
dbgs() << "\n";
}
-#endif
//===----------------------------------------------------------------------===//
// ScheduleDAGMI - Basic machine instruction scheduling. This is