[llvm-commits] [llvm] r39828 - in /llvm/trunk/utils/TableGen: CodeGenTarget.cpp CodeGenTarget.h

Dan Gohman djg at cray.com
Fri Jul 13 13:16:50 PDT 2007


Author: djg
Date: Fri Jul 13 15:16:50 2007
New Revision: 39828

URL: http://llvm.org/viewvc/llvm-project?rev=39828&view=rev
Log:
Eliminate an unused parameter.

Modified:
    llvm/trunk/utils/TableGen/CodeGenTarget.cpp
    llvm/trunk/utils/TableGen/CodeGenTarget.h

Modified: llvm/trunk/utils/TableGen/CodeGenTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenTarget.cpp?rev=39828&r1=39827&r2=39828&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenTarget.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenTarget.cpp Fri Jul 13 15:16:50 2007
@@ -30,7 +30,7 @@
 
 /// 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 @@
     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);

Modified: llvm/trunk/utils/TableGen/CodeGenTarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenTarget.h?rev=39828&r1=39827&r2=39828&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenTarget.h (original)
+++ llvm/trunk/utils/TableGen/CodeGenTarget.h Fri Jul 13 15:16:50 2007
@@ -35,7 +35,7 @@
 
 /// 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);





More information about the llvm-commits mailing list