summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/InfoByHwMode.h
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-09-22 13:32:26 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-09-22 13:32:26 +0000
commit6f05a743f7c5101876b27d30d20f653ca21de6b4 (patch)
tree82c622f18f201f8ad6af41d34d6a43d243159cc3 /llvm/utils/TableGen/InfoByHwMode.h
parent34498ba052ee83a931a894509bab2369a411809a (diff)
downloadbcm5719-llvm-6f05a743f7c5101876b27d30d20f653ca21de6b4.tar.gz
bcm5719-llvm-6f05a743f7c5101876b27d30d20f653ca21de6b4.zip
[TableGen] Return StringRef from ValueTypeByHwMode::getMVTName
Avoid unnecessary std::string creations during TypeSetByHwMode::writeToStream. Found during investigations into PR28222 Differential Revision: https://reviews.llvm.org/D38174 llvm-svn: 313983
Diffstat (limited to 'llvm/utils/TableGen/InfoByHwMode.h')
-rw-r--r--llvm/utils/TableGen/InfoByHwMode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/InfoByHwMode.h b/llvm/utils/TableGen/InfoByHwMode.h
index 71149e8da19..57640fc3025 100644
--- a/llvm/utils/TableGen/InfoByHwMode.h
+++ b/llvm/utils/TableGen/InfoByHwMode.h
@@ -129,7 +129,7 @@ struct ValueTypeByHwMode : public InfoByHwMode<MVT> {
MVT getType(unsigned Mode) const { return get(Mode); }
MVT &getOrCreateTypeForMode(unsigned Mode, MVT Type);
- static std::string getMVTName(MVT T);
+ static StringRef getMVTName(MVT T);
std::string getAsString() const;
void dump() const;
};
OpenPOWER on IntegriCloud