HLSL: Mostly non-functional: simplify, rationalize, and generalize the declaration grammar.
This commit is contained in:
parent
073542416c
commit
d5ed0b6982
3 changed files with 58 additions and 105 deletions
|
|
@ -652,12 +652,6 @@ TFunction* HlslParseContext::handleFunctionDeclarator(const TSourceLoc& loc, TFu
|
|||
// If this is a definition, the definition production code will check for redefinitions
|
||||
// (we don't know at this point if it's a definition or not).
|
||||
//
|
||||
// Redeclarations (full signature match) are allowed. But, return types and parameter qualifiers must also match.
|
||||
// - except ES 100, which only allows a single prototype
|
||||
//
|
||||
// ES 100 does not allow redefining, but does allow overloading of built-in functions.
|
||||
// ES 300 does not allow redefining or overloading of built-in functions.
|
||||
//
|
||||
bool builtIn;
|
||||
TSymbol* symbol = symbolTable.find(function.getMangledName(), &builtIn);
|
||||
const TFunction* prevDec = symbol ? symbol->getAsFunction() : 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue