silence warnings.
authorChris Lattner <sabre@nondot.org>
Fri, 3 Nov 2006 01:18:29 +0000 (01:18 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 3 Nov 2006 01:18:29 +0000 (01:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31394 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaISelLowering.cpp
lib/Target/Alpha/AlphaInstrInfo.td
lib/Target/Alpha/AlphaRegisterInfo.cpp

index 9728d88a387ecacc71cbd193e4c3fab3825f7493..6d53a9e59c4c835724e8736e473edb498ead3859 100644 (file)
@@ -383,12 +383,6 @@ AlphaTargetLowering::LowerCallTo(SDOperand Chain,
   return std::make_pair(RetVal, Chain);
 }
 
-static int getUID()
-{
-  static int id = 0;
-  return ++id;
-}
-
 /// LowerOperation - Provide custom lowering hooks for some operations.
 ///
 SDOperand AlphaTargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
index 807dd250310928c9e73d8da81cbac653d8707ed3..c2919b0772592d82967ee62ef5ab5fa109c03c83 100644 (file)
@@ -96,6 +96,7 @@ def zappat : PatFrag<(ops node:$LHS), (and node:$LHS, imm:$L), [{
 }]>;
 
 def immFPZ  : PatLeaf<(fpimm), [{ //the only fpconstant nodes are +/- 0.0
+  (void)N; // silence warning.
   return true;
 }]>;
 
index 012d835528bd11eeffb00fcc612c92eda898b859..cc6c108420df0b9a81560c801e5ffaf5e88c44f1 100644 (file)
@@ -51,12 +51,6 @@ static long getLower16(long l)
   return l - h * IMM_MULT;
 }
 
-static int getUID()
-{
-  static int id = 0;
-  return ++id;
-}
-
 AlphaRegisterInfo::AlphaRegisterInfo()
   : AlphaGenRegisterInfo(Alpha::ADJUSTSTACKDOWN, Alpha::ADJUSTSTACKUP)
 {