[llvm-commits] [llvm] r81909 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Daniel Dunbar
daniel at zuster.org
Tue Sep 15 13:31:13 PDT 2009
Author: ddunbar
Date: Tue Sep 15 15:31:12 2009
New Revision: 81909
URL: http://llvm.org/viewvc/llvm-project?rev=81909&view=rev
Log:
Fix -Asserts warning.
Modified:
llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=81909&r1=81908&r2=81909&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Tue Sep 15 15:31:12 2009
@@ -637,13 +637,14 @@
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,
More information about the llvm-commits
mailing list