From 9b64c517390ef25e22696f16bc23ef7647825609 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 22 Sep 2017 16:18:35 +0000 Subject: Revert "[TableGen] Replace InfoByHwMode::getAsString with writeToStream" This reverts commit r313989: it breaks Windows bots. llvm-svn: 313990 --- llvm/utils/TableGen/InfoByHwMode.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'llvm/utils/TableGen/InfoByHwMode.h') diff --git a/llvm/utils/TableGen/InfoByHwMode.h b/llvm/utils/TableGen/InfoByHwMode.h index b2e21749888..57640fc3025 100644 --- a/llvm/utils/TableGen/InfoByHwMode.h +++ b/llvm/utils/TableGen/InfoByHwMode.h @@ -27,7 +27,6 @@ namespace llvm { struct CodeGenHwModes; class Record; -class raw_ostream; template struct InfoByHwMode; @@ -131,7 +130,7 @@ struct ValueTypeByHwMode : public InfoByHwMode { MVT &getOrCreateTypeForMode(unsigned Mode, MVT Type); static StringRef getMVTName(MVT T); - void writeToStream(raw_ostream &OS) const; + std::string getAsString() const; void dump() const; }; @@ -155,7 +154,7 @@ struct RegSizeInfo { } bool isSubClassOf(const RegSizeInfo &I) const; - void writeToStream(raw_ostream &OS) const; + std::string getAsString() const; }; struct RegSizeInfoByHwMode : public InfoByHwMode { @@ -170,13 +169,8 @@ struct RegSizeInfoByHwMode : public InfoByHwMode { bool isSubClassOf(const RegSizeInfoByHwMode &I) const; bool hasStricterSpillThan(const RegSizeInfoByHwMode &I) const; - void writeToStream(raw_ostream &OS) const; + std::string getAsString() const; }; - -raw_ostream &operator<<(raw_ostream &OS, const ValueTypeByHwMode &T); -raw_ostream &operator<<(raw_ostream &OS, const RegSizeInfo &T); -raw_ostream &operator<<(raw_ostream &OS, const RegSizeInfoByHwMode &T); - } // namespace llvm #endif // LLVM_UTILS_TABLEGEN_INFOBYHWMODE_H -- cgit v1.2.3