mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-17 05:20:32 +00:00
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
This commit is contained in:
parent
575e2f4ea8
commit
b9daee9ece
@ -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.
|
/// getTarget - Return the current instance of the Target class.
|
||||||
///
|
///
|
||||||
CodeGenTarget::CodeGenTarget() {
|
CodeGenTarget::CodeGenTarget() {
|
||||||
|
@ -37,7 +37,6 @@ enum SDNP { SDNPCommutative, SDNPAssociative, SDNPHasChain,
|
|||||||
/// corresponds to.
|
/// corresponds to.
|
||||||
MVT::ValueType getValueType(Record *Rec, const CodeGenTarget *CGT = 0);
|
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 getName(MVT::ValueType T);
|
||||||
std::string getEnumName(MVT::ValueType T);
|
std::string getEnumName(MVT::ValueType T);
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
|
|||||||
<< " static const MVT::ValueType " << Name
|
<< " static const MVT::ValueType " << Name
|
||||||
<< "[] = {\n ";
|
<< "[] = {\n ";
|
||||||
for (unsigned i = 0, e = RC.VTs.size(); i != e; ++i)
|
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 << "MVT::Other\n };\n\n";
|
||||||
}
|
}
|
||||||
OS << "} // end anonymous namespace\n\n";
|
OS << "} // end anonymous namespace\n\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user