aboutsummaryrefslogtreecommitdiff
path: root/glslang/MachineIndependent/SymbolTable.h
diff options
context:
space:
mode:
authorJohn Kessenich <cepheus@frii.com>2013-10-09 00:20:26 +0000
committerJohn Kessenich <cepheus@frii.com>2013-10-09 00:20:26 +0000
commit3afe67dcc29197cfaf43979d33839a7ff05ec48b (patch)
tree050424737c08ed80512aadf206bb95fc2f58bef9 /glslang/MachineIndependent/SymbolTable.h
parent7ea2f9c39fadfb010dc0c4fc810692eabad24b43 (diff)
downloadglslang-3afe67dcc29197cfaf43979d33839a7ff05ec48b.tar.gz
Non-functional: Remove use of the unused structure 'remapper', and other minor internal improvements. Triggered by some bigger changes in the works. Also, turned on an existing test that was not included in the test list.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23426 e7fa87d3-cd2b-0410-9028-fcbf551c1848
Diffstat (limited to 'glslang/MachineIndependent/SymbolTable.h')
-rw-r--r--glslang/MachineIndependent/SymbolTable.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/glslang/MachineIndependent/SymbolTable.h b/glslang/MachineIndependent/SymbolTable.h
index d3831bba..50bb1052 100644
--- a/glslang/MachineIndependent/SymbolTable.h
+++ b/glslang/MachineIndependent/SymbolTable.h
@@ -81,7 +81,7 @@ class TSymbol {
public:
POOL_ALLOCATOR_NEW_DELETE(GetThreadPoolAllocator())
explicit TSymbol(const TString *n) : name(n), writable(true) { }
- virtual TSymbol* clone(TStructureMap& remapper) = 0;
+ virtual TSymbol* clone() = 0;
virtual ~TSymbol() { }
const TString& getName() const { return *name; }
@@ -126,7 +126,7 @@ protected:
class TVariable : public TSymbol {
public:
TVariable(const TString *name, const TType& t, bool uT = false ) : TSymbol(name), userType(uT) { type.shallowCopy(t); }
- virtual TVariable* clone(TStructureMap& remapper);
+ virtual TVariable* clone();
virtual ~TVariable() { }
virtual TVariable* getAsVariable() { return this; }
@@ -142,7 +142,6 @@ public:
protected:
explicit TVariable(const TVariable&);
- TVariable(const TVariable&, TStructureMap& remapper);
TVariable& operator=(const TVariable&);
TType type;
@@ -159,13 +158,13 @@ protected:
struct TParameter {
TString *name;
TType* type;
- void copyParam(const TParameter& param, const TStructureMap& remapper)
+ void copyParam(const TParameter& param)
{
if (param.name)
name = NewPoolTString(param.name->c_str());
else
name = 0;
- type = param.type->clone(remapper);
+ type = param.type->clone();
}
};
@@ -183,7 +182,7 @@ public:
mangledName(*name + '('),
op(tOp),
defined(false) { returnType.shallowCopy(retType); }
- virtual TFunction* clone(TStructureMap& remapper);
+ virtual TFunction* clone();
virtual ~TFunction();
virtual TFunction* getAsFunction() { return this; }
@@ -210,8 +209,7 @@ public:
virtual void dump(TInfoSink &infoSink) const;
protected:
- explicit TFunction(TFunction&);
- TFunction(const TFunction&, const TStructureMap& remapper);
+ explicit TFunction(const TFunction&);
TFunction& operator=(TFunction&);
typedef TVector<TParameter> TParamList;
@@ -225,7 +223,7 @@ protected:
class TAnonMember : public TSymbol {
public:
TAnonMember(const TString* n, unsigned int m, TSymbol& a) : TSymbol(n), anonContainer(a), memberNumber(m) { }
- virtual TAnonMember* clone(TStructureMap& remapper);
+ virtual TAnonMember* clone();
virtual ~TAnonMember() { }
const TAnonMember* getAsAnonMember() const { return this; }
@@ -346,7 +344,7 @@ public:
void relateToOperator(const char* name, TOperator op);
void dump(TInfoSink &infoSink) const;
- TSymbolTableLevel* clone(TStructureMap& remapper);
+ TSymbolTableLevel* clone();
void readOnly();
protected:
@@ -445,7 +443,7 @@ public:
//
TVariable* copyUp(TVariable* shared)
{
- TVariable* variable = shared->clone(remapper);
+ TVariable* variable = shared->clone();
variable->setUniqueId(shared->getUniqueId());
table[currentLevel()]->insert(*variable);
@@ -497,7 +495,6 @@ protected:
int uniqueId; // for unique identification in code generation
bool noBuiltInRedeclarations;
unsigned int adoptedLevels;
- TStructureMap remapper; // for now, dummy for copyUp(), which is not yet used for structures
};
} // end namespace glslang