llvm.org GIT mirror llvm / d55ea9f
[AMDGPU] Downgrade from StringLiteral to const char* in an attempt to make GCC 5 happy git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369867 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 22 days ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
5454 };
5555
5656 struct ManglingRule {
57 StringLiteral const Name;
57 const char *Name;
5858 unsigned char Lead[2];
5959 unsigned char Param[5];
6060
6868
6969 // Information about library functions with unmangled names.
7070 class UnmangledFuncInfo {
71 StringRef const Name;
71 const char *Name;
7272 unsigned NumArgs;
7373
7474 // Table for all lib functions with unmangled names.
8181
8282 public:
8383 using ID = AMDGPULibFunc::EFuncId;
84 UnmangledFuncInfo(StringRef _Name, unsigned _NumArgs)
84 constexpr UnmangledFuncInfo(const char *_Name, unsigned _NumArgs)
8585 : Name(_Name), NumArgs(_NumArgs) {}
8686 // Get index to Table by function name.
8787 static bool lookup(StringRef Name, ID &Id);