summaryrefslogtreecommitdiff
path: root/utils
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
commit3bf6e183d5f116adc8adbf6853da5f479f22139c (patch)
treef5f1c5573e77b9d8e4a28adcff4cdd51a512ec53 /utils
parenta346615d11f0a560c6e7280c1e614301d9f93051 (diff)
downloadllvm-3bf6e183d5f116adc8adbf6853da5f479f22139c.tar.gz
llvm-3bf6e183d5f116adc8adbf6853da5f479f22139c.tar.bz2
llvm-3bf6e183d5f116adc8adbf6853da5f479f22139c.tar.xz
Eliminate an unused parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/CodeGenTarget.cpp4
-rw-r--r--utils/TableGen/CodeGenTarget.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp
index 71fc824ead..2aabe51c51 100644
--- a/utils/TableGen/CodeGenTarget.cpp
+++ b/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);
diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h
index 7151b7e4bc..7f5f0a7fad 100644
--- a/utils/TableGen/CodeGenTarget.h
+++ b/utils/TableGen/CodeGenTarget.h
@@ -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);