summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/InfoByHwMode.h
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-09-22 16:18:35 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-09-22 16:18:35 +0000
commit9b64c517390ef25e22696f16bc23ef7647825609 (patch)
tree42163a3092d6e8398c92541fbf265861f64094b5 /llvm/utils/TableGen/InfoByHwMode.h
parentd55727e8739decc5d79346cd337446d9191f3639 (diff)
downloadbcm5719-llvm-9b64c517390ef25e22696f16bc23ef7647825609.tar.gz
bcm5719-llvm-9b64c517390ef25e22696f16bc23ef7647825609.zip
Revert "[TableGen] Replace InfoByHwMode::getAsString with writeToStream"
This reverts commit r313989: it breaks Windows bots. llvm-svn: 313990
Diffstat (limited to 'llvm/utils/TableGen/InfoByHwMode.h')
-rw-r--r--llvm/utils/TableGen/InfoByHwMode.h12
1 files changed, 3 insertions, 9 deletions
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 <typename InfoT> struct InfoByHwMode;
@@ -131,7 +130,7 @@ struct ValueTypeByHwMode : public InfoByHwMode<MVT> {
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<RegSizeInfo> {
@@ -170,13 +169,8 @@ struct RegSizeInfoByHwMode : public InfoByHwMode<RegSizeInfo> {
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
OpenPOWER on IntegriCloud