mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[AMDGPU] Downgrade from StringLiteral to const char* in an attempt to make GCC 5 happy
llvm-svn: 369867
This commit is contained in:
parent
86371ea28e
commit
6f2f4181fa
@ -55,7 +55,7 @@ enum EManglingParam {
|
||||
};
|
||||
|
||||
struct ManglingRule {
|
||||
StringLiteral const Name;
|
||||
const char *Name;
|
||||
unsigned char Lead[2];
|
||||
unsigned char Param[5];
|
||||
|
||||
@ -69,7 +69,7 @@ struct ManglingRule {
|
||||
|
||||
// Information about library functions with unmangled names.
|
||||
class UnmangledFuncInfo {
|
||||
StringRef const Name;
|
||||
const char *Name;
|
||||
unsigned NumArgs;
|
||||
|
||||
// Table for all lib functions with unmangled names.
|
||||
@ -82,7 +82,7 @@ class UnmangledFuncInfo {
|
||||
|
||||
public:
|
||||
using ID = AMDGPULibFunc::EFuncId;
|
||||
UnmangledFuncInfo(StringRef _Name, unsigned _NumArgs)
|
||||
constexpr UnmangledFuncInfo(const char *_Name, unsigned _NumArgs)
|
||||
: Name(_Name), NumArgs(_NumArgs) {}
|
||||
// Get index to Table by function name.
|
||||
static bool lookup(StringRef Name, ID &Id);
|
||||
|
Loading…
Reference in New Issue
Block a user