summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-06-04 16:11:03 +0000
committerDan Gohman <gohman@apple.com>2007-06-04 16:11:03 +0000
commitb9daee9ece898ff5bf8cf354fe2286ad44a357e8 (patch)
treeb652c6160c59bb963acb2f727c9f06d894000144
parent575e2f4ea874deae3af8a940f30df5348d272190 (diff)
downloadllvm-b9daee9ece898ff5bf8cf354fe2286ad44a357e8.tar.gz
llvm-b9daee9ece898ff5bf8cf354fe2286ad44a357e8.tar.bz2
llvm-b9daee9ece898ff5bf8cf354fe2286ad44a357e8.tar.xz
Remove the operator<< for MVT::ValueType in preparation for MVT::ValueType
being changed from an enum to an integer type, which can't have a custom operator<< overload. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37412 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/TableGen/CodeGenTarget.cpp5
-rw-r--r--utils/TableGen/CodeGenTarget.h1
-rw-r--r--utils/TableGen/RegisterInfoEmitter.cpp2
3 files changed, 1 insertions, 7 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp
index 7d2e7b3d13..a6677a2bf8 100644
--- a/utils/TableGen/CodeGenTarget.cpp
+++ b/utils/TableGen/CodeGenTarget.cpp
@@ -99,11 +99,6 @@ std::string llvm::getEnumName(MVT::ValueType T) {
}
-std::ostream &llvm::operator<<(std::ostream &OS, MVT::ValueType T) {
- return OS << getName(T);
-}
-
-
/// getTarget - Return the current instance of the Target class.
///
CodeGenTarget::CodeGenTarget() {
diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h
index bd403402ca..7151b7e4bc 100644
--- a/utils/TableGen/CodeGenTarget.h
+++ b/utils/TableGen/CodeGenTarget.h
@@ -37,7 +37,6 @@ enum SDNP { SDNPCommutative, SDNPAssociative, SDNPHasChain,
/// corresponds to.
MVT::ValueType getValueType(Record *Rec, const CodeGenTarget *CGT = 0);
-std::ostream &operator<<(std::ostream &OS, MVT::ValueType T);
std::string getName(MVT::ValueType T);
std::string getEnumName(MVT::ValueType T);
diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp
index 0e3645b1e5..8b21a9bd57 100644
--- a/utils/TableGen/RegisterInfoEmitter.cpp
+++ b/utils/TableGen/RegisterInfoEmitter.cpp
@@ -209,7 +209,7 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
<< " static const MVT::ValueType " << Name
<< "[] = {\n ";
for (unsigned i = 0, e = RC.VTs.size(); i != e; ++i)
- OS << RC.VTs[i] << ", ";
+ OS << getName(RC.VTs[i]) << ", ";
OS << "MVT::Other\n };\n\n";
}
OS << "} // end anonymous namespace\n\n";