Eliminate an unused parameter.

llvm-svn: 39828
This commit is contained in:
Dan Gohman 2007-07-13 20:16:50 +00:00
parent ff72788863
commit 10835d9c67
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ AsmWriterNum("asmwriternum", cl::init(0),
/// getValueType - Return the MCV::ValueType that the specified TableGen record
/// corresponds to.
MVT::ValueType llvm::getValueType(Record *Rec, const CodeGenTarget *CGT) {
MVT::ValueType llvm::getValueType(Record *Rec) {
return (MVT::ValueType)Rec->getValueAsInt("Value");
}
@ -623,7 +623,7 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R, CodeGenTarget *CGT) {
Record *TyEl = TypeList->getElementAsRecord(i);
assert(TyEl->isSubClassOf("LLVMType") && "Expected a type!");
ArgTypes.push_back(TyEl->getValueAsString("TypeVal"));
MVT::ValueType VT = getValueType(TyEl->getValueAsDef("VT"), CGT);
MVT::ValueType VT = getValueType(TyEl->getValueAsDef("VT"));
isOverloaded |= VT == MVT::iAny;
ArgVTs.push_back(VT);
ArgTypeDefs.push_back(TyEl);

View File

@ -35,7 +35,7 @@ enum SDNP { SDNPCommutative, SDNPAssociative, SDNPHasChain,
/// getValueType - Return the MVT::ValueType that the specified TableGen record
/// corresponds to.
MVT::ValueType getValueType(Record *Rec, const CodeGenTarget *CGT = 0);
MVT::ValueType getValueType(Record *Rec);
std::string getName(MVT::ValueType T);
std::string getEnumName(MVT::ValueType T);