@@ -104,23 +104,24 @@ class InstModCallbacks {
104
104
InstModCallbacks (const InstModCallbacks &) = default ;
105
105
106
106
// / Return a copy of self with deleteInstFunc set to \p newDeleteInstFunc.
107
- InstModCallbacks onDelete (decltype (deleteInstFunc) newDeleteInstFunc) const {
107
+ LLVM_ATTRIBUTE_UNUSED InstModCallbacks
108
+ onDelete (decltype (deleteInstFunc) newDeleteInstFunc) const {
108
109
InstModCallbacks result = *this ;
109
110
result.deleteInstFunc = newDeleteInstFunc;
110
111
return result;
111
112
}
112
113
113
114
// / Return a copy of self with createdNewInstFunc set to \p
114
115
// / newCreatedNewInstFunc.
115
- InstModCallbacks
116
+ LLVM_ATTRIBUTE_UNUSED InstModCallbacks
116
117
onCreateNewInst (decltype (createdNewInstFunc) newCreatedNewInstFunc) const {
117
118
InstModCallbacks result = *this ;
118
119
result.createdNewInstFunc = newCreatedNewInstFunc;
119
120
return result;
120
121
}
121
122
122
123
// / Return a copy of self with setUseValueFunc set to \p newSetUseValueFunc.
123
- InstModCallbacks
124
+ LLVM_ATTRIBUTE_UNUSED InstModCallbacks
124
125
onSetUseValue (decltype (setUseValueFunc) newSetUseValueFunc) const {
125
126
InstModCallbacks result = *this ;
126
127
result.setUseValueFunc = newSetUseValueFunc;
@@ -129,6 +130,7 @@ class InstModCallbacks {
129
130
130
131
// / Return a copy of self with notifyWillBeDeletedFunc set to \p
131
132
// / newNotifyWillBeDeletedFunc.
133
+ LLVM_ATTRIBUTE_UNUSED
132
134
InstModCallbacks onNotifyWillBeDeleted (
133
135
decltype (notifyWillBeDeletedFunc) newNotifyWillBeDeletedFunc) const {
134
136
InstModCallbacks result = *this ;
0 commit comments