summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenTarget.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-07-13 20:16:50 +0000
committerDan Gohman <gohman@apple.com>2007-07-13 20:16:50 +0000
commit10835d9c67081221e21aeeb324b4452517984ca8 (patch)
treea58b8ae3b9c79ca80b62bd0ab982c0827cf750b4 /llvm/utils/TableGen/CodeGenTarget.cpp
parentff72788863b5966b3f00449a102acf32e38a02f9 (diff)
downloadbcm5719-llvm-10835d9c67081221e21aeeb324b4452517984ca8.tar.gz
bcm5719-llvm-10835d9c67081221e21aeeb324b4452517984ca8.zip
Eliminate an unused parameter.
llvm-svn: 39828
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenTarget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp
index 71fc824eadf..2aabe51c51c 100644
--- a/llvm/utils/TableGen/CodeGenTarget.cpp
+++ b/llvm/utils/TableGen/CodeGenTarget.cpp
@@ -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);
OpenPOWER on IntegriCloud