mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Support function declarations with either %XXX or "XXX" style for now
"XXX" style should be considered deprecated, and will hopefully be removed in the future. llvm-svn: 2727
This commit is contained in:
parent
37107da53e
commit
0737f63807
@ -668,7 +668,7 @@ Module *RunVMAsmParser(const string &Filename, FILE *F) {
|
||||
%token <PrimType> FLOAT DOUBLE TYPE LABEL
|
||||
|
||||
%token <StrVal> VAR_ID LABELSTR STRINGCONSTANT
|
||||
%type <StrVal> OptVAR_ID OptAssign
|
||||
%type <StrVal> OptVAR_ID OptAssign FuncName
|
||||
|
||||
|
||||
%token IMPLEMENTATION TRUE FALSE BEGINTOK ENDTOK DECLARE GLOBAL CONSTANT UNINIT
|
||||
@ -1136,7 +1136,9 @@ ArgList : ArgListH {
|
||||
$$ = 0;
|
||||
}
|
||||
|
||||
FunctionHeaderH : OptInternal TypesV STRINGCONSTANT '(' ArgList ')' {
|
||||
FuncName : VAR_ID | STRINGCONSTANT;
|
||||
|
||||
FunctionHeaderH : OptInternal TypesV FuncName '(' ArgList ')' {
|
||||
UnEscapeLexed($3);
|
||||
string FunctionName($3);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user