From: Arnaud A. de Grandmaison Date: Wed, 10 Sep 2014 14:24:02 +0000 (+0000) Subject: [AArch64] Pacify lld buildbot complaining about an unused static function in release... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ac67a5fd18019aca250a27b2bcce1dc686d4cc5e;p=oota-llvm.git [AArch64] Pacify lld buildbot complaining about an unused static function in release build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217505 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp b/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp index c4787f4afd6..87e3502c9aa 100644 --- a/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp +++ b/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp @@ -37,11 +37,13 @@ using namespace llvm; namespace { +#ifndef NDEBUG bool isFPReg(unsigned reg) { return AArch64::FPR32RegClass.contains(reg) || AArch64::FPR64RegClass.contains(reg) || AArch64::FPR128RegClass.contains(reg); }; +#endif bool isOdd(unsigned reg) { switch (reg) {