Return const char * const instead of std::string from get register name method
llvm-svn: 3294
This commit is contained in:
parent
41e99a07f1
commit
f43b003aba
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue