From d6b98e8bd8c0f4eb5f06fa3e57a12784b836b1ba Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sat, 2 Jul 2011 16:36:24 +0000 Subject: [PATCH] Remove unused array. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134323 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PTX/PTXISelLowering.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/lib/Target/PTX/PTXISelLowering.cpp b/lib/Target/PTX/PTXISelLowering.cpp index 7831aa0c876..6fcf710e3f1 100644 --- a/lib/Target/PTX/PTXISelLowering.cpp +++ b/lib/Target/PTX/PTXISelLowering.cpp @@ -184,27 +184,6 @@ LowerGlobalAddress(SDValue Op, SelectionDAG &DAG) const { // Calling Convention Implementation //===----------------------------------------------------------------------===// -namespace { -struct argmap_entry { - MVT::SimpleValueType VT; - TargetRegisterClass *RC; - TargetRegisterClass::iterator loc; - - argmap_entry(MVT::SimpleValueType _VT, TargetRegisterClass *_RC) - : VT(_VT), RC(_RC), loc(_RC->begin()) {} - - void reset() { loc = RC->begin(); } - bool operator==(MVT::SimpleValueType _VT) const { return VT == _VT; } -} argmap[] = { - argmap_entry(MVT::i1, PTX::RegPredRegisterClass), - argmap_entry(MVT::i16, PTX::RegI16RegisterClass), - argmap_entry(MVT::i32, PTX::RegI32RegisterClass), - argmap_entry(MVT::i64, PTX::RegI64RegisterClass), - argmap_entry(MVT::f32, PTX::RegF32RegisterClass), - argmap_entry(MVT::f64, PTX::RegF64RegisterClass) -}; -} // end anonymous namespace - SDValue PTXTargetLowering:: LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,