mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Release build: guard dump functions with "ifndef NDEBUG"
No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163339 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -143,6 +143,7 @@ void SlotIndexes::renumberIndexes(IndexList::iterator curItr) {
|
||||
}
|
||||
|
||||
|
||||
#ifndef NDEBUG
|
||||
void SlotIndexes::dump() const {
|
||||
for (IndexList::const_iterator itr = indexList.begin();
|
||||
itr != indexList.end(); ++itr) {
|
||||
@@ -159,6 +160,7 @@ void SlotIndexes::dump() const {
|
||||
dbgs() << "BB#" << i << "\t[" << MBBRanges[i].first << ';'
|
||||
<< MBBRanges[i].second << ")\n";
|
||||
}
|
||||
#endif
|
||||
|
||||
// Print a SlotIndex to a raw_ostream.
|
||||
void SlotIndex::print(raw_ostream &os) const {
|
||||
@@ -168,9 +170,11 @@ void SlotIndex::print(raw_ostream &os) const {
|
||||
os << "invalid";
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
// Dump a SlotIndex to stderr.
|
||||
void SlotIndex::dump() const {
|
||||
print(dbgs());
|
||||
dbgs() << "\n";
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user