From: Daniel Dunbar Date: Tue, 15 Sep 2009 20:31:12 +0000 (+0000) Subject: Fix -Asserts warning. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=504f9a61e61ee274fe50d8300825bdc2e5adb9b0;p=oota-llvm.git Fix -Asserts warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81909 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 34d55ec5968..6296e933818 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/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,