Generalize "main" to a settable entry point name.
This commit is contained in:
parent
6cc7674b6d
commit
4d65ee31a6
8 changed files with 38 additions and 8 deletions
|
|
@ -145,6 +145,8 @@ public:
|
|||
void output(TInfoSink&, bool tree);
|
||||
void removeTree();
|
||||
|
||||
void setEntryPoint(const char* ep) { entryPoint = ep; }
|
||||
const TString& getEntryPoint() const { return entryPoint; }
|
||||
void setVersion(int v) { version = v; }
|
||||
int getVersion() const { return version; }
|
||||
void setProfile(EProfile p) { profile = p; }
|
||||
|
|
@ -338,6 +340,7 @@ protected:
|
|||
static int getBaseAlignmentScalar(const TType&, int& size);
|
||||
|
||||
const EShLanguage language;
|
||||
TString entryPoint;
|
||||
TIntermNode* treeRoot;
|
||||
EProfile profile;
|
||||
int version;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue