From: Chris Lattner Date: Mon, 12 Aug 2002 21:24:55 +0000 (+0000) Subject: Return const char * const instead of std::string from get register name method X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6ef33693213356eb1afe04046b7af343616fafa7;p=oota-llvm.git 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 --- diff --git a/include/llvm/Target/TargetRegInfo.h b/include/llvm/Target/TargetRegInfo.h index 4f809bfb158..0a1a63bf9aa 100644 --- a/include/llvm/Target/TargetRegInfo.h +++ b/include/llvm/Target/TargetRegInfo.h @@ -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,