mirror of https://github.com/llvm/circt.git
[ESI] Add missing `const` to `Callback::get` argument
The underlying constructor requires a `const BundleType*`...
This commit is contained in:
parent
d41ea14885
commit
a681fefd5e
|
@ -308,8 +308,9 @@ public:
|
|||
PortMap channels);
|
||||
|
||||
public:
|
||||
static Callback *get(AcceleratorConnection &acc, AppID id, BundleType *type,
|
||||
WriteChannelPort &result, ReadChannelPort &arg);
|
||||
static Callback *get(AcceleratorConnection &acc, AppID id,
|
||||
const BundleType *type, WriteChannelPort &result,
|
||||
ReadChannelPort &arg);
|
||||
|
||||
/// Connect a callback to code which will be executed when the accelerator
|
||||
/// invokes the callback. The 'quick' flag indicates that the callback is
|
||||
|
|
|
@ -240,7 +240,8 @@ CallService::Callback::Callback(AcceleratorConnection &acc, AppID id,
|
|||
: ServicePort(id, type, channels), acc(acc) {}
|
||||
|
||||
CallService::Callback *CallService::Callback::get(AcceleratorConnection &acc,
|
||||
AppID id, BundleType *type,
|
||||
AppID id,
|
||||
const BundleType *type,
|
||||
WriteChannelPort &result,
|
||||
ReadChannelPort &arg) {
|
||||
return new Callback(acc, id, type, {{"arg", arg}, {"result", result}});
|
||||
|
|
Loading…
Reference in New Issue