Commit f93d2d80 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

We don't use the uses, so just ifdef-out the code for now.

parent 908ee0e5
...@@ -292,6 +292,7 @@ Use *Scope::useAt(unsigned index) const ...@@ -292,6 +292,7 @@ Use *Scope::useAt(unsigned index) const
void Scope::addUse(unsigned sourceOffset, Name *name) void Scope::addUse(unsigned sourceOffset, Name *name)
{ {
#ifdef CPLUSPLUS_WITH_USES
if (++_useCount == _allocatedUses) { if (++_useCount == _allocatedUses) {
_allocatedUses += 4; _allocatedUses += 4;
_uses = reinterpret_cast<Use *>(realloc(_uses, _allocatedUses * sizeof(Use))); _uses = reinterpret_cast<Use *>(realloc(_uses, _allocatedUses * sizeof(Use)));
...@@ -303,6 +304,7 @@ void Scope::addUse(unsigned sourceOffset, Name *name) ...@@ -303,6 +304,7 @@ void Scope::addUse(unsigned sourceOffset, Name *name)
else else
lastVisibleSymbol = _symbols[_symbolCount]; lastVisibleSymbol = _symbols[_symbolCount];
_uses[_useCount].init(sourceOffset, name, lastVisibleSymbol); _uses[_useCount].init(sourceOffset, name, lastVisibleSymbol);
#endif
} }
CPLUSPLUS_END_NAMESPACE CPLUSPLUS_END_NAMESPACE
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment