Return const char * const instead of std::string from get register name method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-08-12 21:24:55 +00:00
parent 994b9f337b
commit 6ef3369321

View File

@ -192,7 +192,7 @@ public:
virtual int getClassRegNum(int unifiedRegNum, unsigned& regClassID) const =0;
// Returns the assembly-language name of the specified machine register.
virtual const std::string getUnifiedRegName(int UnifiedRegNum) const = 0;
virtual const char * const getUnifiedRegName(int UnifiedRegNum) const = 0;
// The following 4 methods are used to find the RegType (a target-specific
// enum) for a reg class and a given primitive type, a LiveRange, a Value,