summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-15 20:31:12 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-15 20:31:12 +0000
commit9367ec86447a9f9bfec9f93d0dda2d8b3104d23d (patch)
tree7d7b21bcf90a69eb51dc95921937f0bfd8113c61 /llvm/lib/CodeGen
parent54f22fb1de2411451a67c0699e5c3219f6347312 (diff)
downloadbcm5719-llvm-9367ec86447a9f9bfec9f93d0dda2d8b3104d23d.tar.gz
bcm5719-llvm-9367ec86447a9f9bfec9f93d0dda2d8b3104d23d.zip
Fix -Asserts warning.
llvm-svn: 81909
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 34d55ec5968..6296e933818 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -637,13 +637,14 @@ bool LiveIntervals::conflictsWithPhysRegRef(LiveInterval &li,
return false;
}
-
+#ifndef NDEBUG
static void printRegName(unsigned reg, const TargetRegisterInfo* tri_) {
if (TargetRegisterInfo::isPhysicalRegister(reg))
errs() << tri_->getName(reg);
else
errs() << "%reg" << reg;
}
+#endif
void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock *mbb,
MachineBasicBlock::iterator mi,
OpenPOWER on IntegriCloud