summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegisterScavenging.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-12-23 21:55:04 +0000
committerDevang Patel <dpatel@apple.com>2008-12-23 21:55:04 +0000
commit323dbe57a6578a6f3456a062878d337cf657a1da (patch)
treefa982b20c2c81e20abd11e935679d293c37d27e9 /llvm/lib/CodeGen/RegisterScavenging.cpp
parent12f2490489c884cd729ad3ac4f8f5583213b4682 (diff)
downloadbcm5719-llvm-323dbe57a6578a6f3456a062878d337cf657a1da.tar.gz
bcm5719-llvm-323dbe57a6578a6f3456a062878d337cf657a1da.zip
Silience unused warnings.
llvm-svn: 61390
Diffstat (limited to 'llvm/lib/CodeGen/RegisterScavenging.cpp')
-rw-r--r--llvm/lib/CodeGen/RegisterScavenging.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegisterScavenging.cpp b/llvm/lib/CodeGen/RegisterScavenging.cpp
index add639a9671..ff593c156dd 100644
--- a/llvm/lib/CodeGen/RegisterScavenging.cpp
+++ b/llvm/lib/CodeGen/RegisterScavenging.cpp
@@ -139,6 +139,7 @@ void RegScavenger::restoreScavengedReg() {
ScavengedRC = NULL;
}
+#ifndef NDEBUG
/// isLiveInButUnusedBefore - Return true if register is livein the MBB not
/// not used before it reaches the MI that defines register.
static bool isLiveInButUnusedBefore(unsigned Reg, MachineInstr *MI,
@@ -172,6 +173,7 @@ static bool isLiveInButUnusedBefore(unsigned Reg, MachineInstr *MI,
return false;
return true;
}
+#endif
void RegScavenger::forward() {
// Move ptr forward.
OpenPOWER on IntegriCloud