Inline a variable into debug section to fix unused variable warning.
llvm-svn: 361927
This commit is contained in:
parent
87575f6501
commit
c77aff7e17
|
@ -3963,10 +3963,10 @@ void ResourceManager::reserveResources(const MCInstrDesc *MID) {
|
|||
STI->getWriteProcResEnd(SCDesc))) {
|
||||
if (!PRE.Cycles)
|
||||
continue;
|
||||
const MCProcResourceDesc *ProcResource =
|
||||
SM.getProcResource(PRE.ProcResourceIdx);
|
||||
++ProcResourceCount[PRE.ProcResourceIdx];
|
||||
LLVM_DEBUG({
|
||||
const MCProcResourceDesc *ProcResource =
|
||||
SM.getProcResource(PRE.ProcResourceIdx);
|
||||
dbgs() << format(" %16s(%2d): Count: %2d, NumUnits:%2d, Cycles:%2d\n",
|
||||
ProcResource->Name, PRE.ProcResourceIdx,
|
||||
ProcResourceCount[PRE.ProcResourceIdx],
|
||||
|
|
Loading…
Reference in New Issue