@@ -200,7 +200,7 @@ void ClangOpcodesEmitter::EmitEmitter(raw_ostream &OS, StringRef N,
200
200
OS << (AsRef ? " const " : " " ) << Name << " " << (AsRef ? " &" : " " ) << " A"
201
201
<< I << " , " ;
202
202
}
203
- OS << " const SourceInfo & L) {\n " ;
203
+ OS << " SourceInfo L) {\n " ;
204
204
205
205
// Emit a call to write the opcodes.
206
206
OS << " return emitOp<" ;
@@ -231,7 +231,7 @@ void ClangOpcodesEmitter::EmitProto(raw_ostream &OS, StringRef N,
231
231
OS << (AsRef ? " const " : " " ) << Name << " " << (AsRef ? " &" : " " )
232
232
<< " , " ;
233
233
}
234
- OS << " const SourceInfo & );\n " ;
234
+ OS << " SourceInfo);\n " ;
235
235
});
236
236
237
237
// Emit a template method for custom emitters to have less to implement.
@@ -248,7 +248,7 @@ void ClangOpcodesEmitter::EmitProto(raw_ostream &OS, StringRef N,
248
248
OS << " bool emit" << N << " (" ;
249
249
for (const auto *Arg : Args)
250
250
OS << Arg->getValueAsString (" Name" ) << " , " ;
251
- OS << " const SourceInfo & );\n " ;
251
+ OS << " SourceInfo);\n " ;
252
252
OS << " #endif\n " ;
253
253
}
254
254
@@ -272,7 +272,7 @@ void ClangOpcodesEmitter::EmitGroup(raw_ostream &OS, StringRef N,
272
272
OS << " PrimType, " ;
273
273
for (auto *Arg : Args)
274
274
OS << Arg->getValueAsString (" Name" ) << " , " ;
275
- OS << " const SourceInfo & I);\n " ;
275
+ OS << " SourceInfo I);\n " ;
276
276
OS << " #endif\n " ;
277
277
278
278
// Emit the dispatch implementation in the source.
@@ -294,7 +294,7 @@ void ClangOpcodesEmitter::EmitGroup(raw_ostream &OS, StringRef N,
294
294
OS << (AsRef ? " const " : " " ) << Name << " " << (AsRef ? " &" : " " ) << " A"
295
295
<< I << " , " ;
296
296
}
297
- OS << " const SourceInfo & I) {\n " ;
297
+ OS << " SourceInfo I) {\n " ;
298
298
299
299
std::function<void (size_t , const Twine &)> Rec;
300
300
SmallVector<const Record *, 2 > TS;
@@ -368,7 +368,7 @@ void ClangOpcodesEmitter::EmitEval(raw_ostream &OS, StringRef N,
368
368
OS << (AsRef ? " const " : " " ) << Name << " "
369
369
<< (AsRef ? " &" : " " ) << " A" << I << " , " ;
370
370
}
371
- OS << " const SourceInfo & L) {\n " ;
371
+ OS << " SourceInfo L) {\n " ;
372
372
OS << " if (!isActive()) return true;\n " ;
373
373
OS << " CurrentSource = L;\n " ;
374
374
0 commit comments