X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Foptimize.h;fp=source%2Fglsl%2Foptimize.h;h=6d4b1bcb5d2c2e5d883d7ab640390481c8c7e84e;hp=f6604743810ff1e275198ee554badcd53a75ffa2;hb=4790c6a06072814b21f5b3f24b53c6936915308d;hpb=3e262649c1b98462bcaa2c66bc4fb4ee916dc9de diff --git a/source/glsl/optimize.h b/source/glsl/optimize.h index f6604743..6d4b1bcb 100644 --- a/source/glsl/optimize.h +++ b/source/glsl/optimize.h @@ -10,8 +10,8 @@ namespace GL { namespace SL { /** Finds functions which are candidates for inlining. Currently this means -functions which have no parameters, contain no more than one return statement, -and are only called once. */ +functions which have no flow control statements, no more than one return +statement, and are only called once. */ class InlineableFunctionLocator: private TraversingVisitor { private: @@ -59,7 +59,7 @@ private: public: InlineContentInjector(); - const std::string &apply(Stage &, FunctionDeclaration &, Block &, const NodeList::iterator &, FunctionDeclaration &); + const std::string &apply(Stage &, FunctionDeclaration &, Block &, const NodeList::iterator &, FunctionCall &); private: virtual void visit(VariableReference &);