diff options
Diffstat (limited to 'llvm/utils/TableGen/SubtargetFeatureInfo.h')
-rw-r--r-- | llvm/utils/TableGen/SubtargetFeatureInfo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/SubtargetFeatureInfo.h b/llvm/utils/TableGen/SubtargetFeatureInfo.h index b8d9123b845..99f380f2a1d 100644 --- a/llvm/utils/TableGen/SubtargetFeatureInfo.h +++ b/llvm/utils/TableGen/SubtargetFeatureInfo.h @@ -33,7 +33,9 @@ struct SubtargetFeatureInfo { SubtargetFeatureInfo(Record *D, uint64_t Idx) : TheDef(D), Index(Idx) {} /// \brief The name of the enumerated constant identifying this feature. - std::string getEnumName() const { return "Feature_" + TheDef->getName(); } + std::string getEnumName() const { + return "Feature_" + TheDef->getName().str(); + } void dump() const; static std::vector<std::pair<Record *, SubtargetFeatureInfo>> |