Remove debugOptions from internal classes
The debug options passed down from the public ShConstruct* functions to internal code is unused. This change removes the internal debugOptions fields and attempts to make it more obvious these fields are not used. This change does not change the public-facing interface. This change also adds the -Wshorten-64-to-32 warning to the StandAlone build in order to avoid unwanted 64-to-32 bit conversions in the future. Closes #3348.
This commit is contained in:
parent
a9e698322e
commit
8fa46582ec
6 changed files with 30 additions and 37 deletions
|
|
@ -41,10 +41,9 @@
|
|||
//
|
||||
class TGenericCompiler : public TCompiler {
|
||||
public:
|
||||
TGenericCompiler(EShLanguage l, int dOptions) : TCompiler(l, infoSink), debugOptions(dOptions) { }
|
||||
TGenericCompiler(EShLanguage l) : TCompiler(l, infoSink) {}
|
||||
virtual bool compile(TIntermNode* root, int version = 0, EProfile profile = ENoProfile);
|
||||
TInfoSink infoSink;
|
||||
int debugOptions;
|
||||
};
|
||||
|
||||
//
|
||||
|
|
@ -52,10 +51,7 @@ public:
|
|||
// compile object used by higher level code. It returns
|
||||
// a subclass of TCompiler.
|
||||
//
|
||||
TCompiler* ConstructCompiler(EShLanguage language, int debugOptions)
|
||||
{
|
||||
return new TGenericCompiler(language, debugOptions);
|
||||
}
|
||||
TCompiler* ConstructCompiler(EShLanguage language, int) { return new TGenericCompiler(language); }
|
||||
|
||||
//
|
||||
// Delete the compiler made by ConstructCompiler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue