mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 10:04:33 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
68e0278815
commit
8ebccb7f0e
@ -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