Arguments to functions were being passed by value. This patch
changes SLICC so that arguments are passed by reference.
virtual void blockOnQueue(Address, MessageBuffer*) = 0;
virtual void unblock(Address) = 0;
virtual void initNetworkPtr(Network* net_ptr) = 0;
- virtual AccessPermission getAccessPermission(Address addr) = 0;
- virtual DataBlock& getDataBlock(Address addr) = 0;
+ virtual AccessPermission getAccessPermission(const Address& addr) = 0;
+ virtual DataBlock& getDataBlock(const Address& addr) = 0;
virtual void print(std::ostream & out) const = 0;
virtual void printStats(std::ostream & out) const = 0;
return type, "%s* %s" % (type.c_ident, param)
else:
- return type, "%s %s" % (type.c_ident, param)
+ return type, "const %s& %s" % (type.c_ident, param)