[llvm-commits] CVS: llvm/utils/TableGen/CodeGenTarget.cpp CodeGenTarget.h RegisterInfoEmitter.cpp
Dan Gohman
djg at cray.com
Mon Jun 4 09:11:25 PDT 2007
Changes in directory llvm/utils/TableGen:
CodeGenTarget.cpp updated: 1.89 -> 1.90
CodeGenTarget.h updated: 1.29 -> 1.30
RegisterInfoEmitter.cpp updated: 1.54 -> 1.55
---
Log message:
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.
---
Diffs of the changes: (+1 -7)
CodeGenTarget.cpp | 5 -----
CodeGenTarget.h | 1 -
RegisterInfoEmitter.cpp | 2 +-
3 files changed, 1 insertion(+), 7 deletions(-)
Index: llvm/utils/TableGen/CodeGenTarget.cpp
diff -u llvm/utils/TableGen/CodeGenTarget.cpp:1.89 llvm/utils/TableGen/CodeGenTarget.cpp:1.90
--- llvm/utils/TableGen/CodeGenTarget.cpp:1.89 Wed May 16 15:45:24 2007
+++ llvm/utils/TableGen/CodeGenTarget.cpp Mon Jun 4 11:11:03 2007
@@ -99,11 +99,6 @@
}
-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() {
Index: llvm/utils/TableGen/CodeGenTarget.h
diff -u llvm/utils/TableGen/CodeGenTarget.h:1.29 llvm/utils/TableGen/CodeGenTarget.h:1.30
--- llvm/utils/TableGen/CodeGenTarget.h:1.29 Wed Oct 11 16:02:01 2006
+++ llvm/utils/TableGen/CodeGenTarget.h Mon Jun 4 11:11:03 2007
@@ -37,7 +37,6 @@
/// 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);
Index: llvm/utils/TableGen/RegisterInfoEmitter.cpp
diff -u llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.54 llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.55
--- llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.54 Tue May 1 01:08:36 2007
+++ llvm/utils/TableGen/RegisterInfoEmitter.cpp Mon Jun 4 11:11:03 2007
@@ -209,7 +209,7 @@
<< " 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";
More information about the llvm-commits
mailing list