From 6ef33693213356eb1afe04046b7af343616fafa7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 Aug 2002 21:24:55 +0000 Subject: [PATCH] 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 --- include/llvm/Target/TargetRegInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,