summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-12 21:24:55 +0000
committerChris Lattner <sabre@nondot.org>2002-08-12 21:24:55 +0000
commitf43b003aba6f9c596dc64562b047f454819e439b (patch)
treec1f84597abc3fc4e41efa30bae87e0066b3018fc
parent41e99a07f1f9a70e7287f18ceae21c88ccf44b0a (diff)
downloadbcm5719-llvm-f43b003aba6f9c596dc64562b047f454819e439b.tar.gz
bcm5719-llvm-f43b003aba6f9c596dc64562b047f454819e439b.zip
Return const char * const instead of std::string from get register name method
llvm-svn: 3294
-rw-r--r--llvm/include/llvm/Target/TargetRegInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Target/TargetRegInfo.h b/llvm/include/llvm/Target/TargetRegInfo.h
index 4f809bfb158..0a1a63bf9aa 100644
--- a/llvm/include/llvm/Target/TargetRegInfo.h
+++ b/llvm/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,
OpenPOWER on IntegriCloud