@@ -200,7 +200,7 @@ void ClangOpcodesEmitter::EmitEmitter(raw_ostream &OS, StringRef N,
200200 OS << (AsRef ? " const " : " " ) << Name << " " << (AsRef ? " &" : " " ) << " A"
201201 << I << " , " ;
202202 }
203- OS << " const SourceInfo & L) {\n " ;
203+ OS << " SourceInfo L) {\n " ;
204204
205205 // Emit a call to write the opcodes.
206206 OS << " return emitOp<" ;
@@ -231,7 +231,7 @@ void ClangOpcodesEmitter::EmitProto(raw_ostream &OS, StringRef N,
231231 OS << (AsRef ? " const " : " " ) << Name << " " << (AsRef ? " &" : " " )
232232 << " , " ;
233233 }
234- OS << " const SourceInfo & );\n " ;
234+ OS << " SourceInfo);\n " ;
235235 });
236236
237237 // Emit a template method for custom emitters to have less to implement.
@@ -248,7 +248,7 @@ void ClangOpcodesEmitter::EmitProto(raw_ostream &OS, StringRef N,
248248 OS << " bool emit" << N << " (" ;
249249 for (const auto *Arg : Args)
250250 OS << Arg->getValueAsString (" Name" ) << " , " ;
251- OS << " const SourceInfo & );\n " ;
251+ OS << " SourceInfo);\n " ;
252252 OS << " #endif\n " ;
253253 }
254254
@@ -272,7 +272,7 @@ void ClangOpcodesEmitter::EmitGroup(raw_ostream &OS, StringRef N,
272272 OS << " PrimType, " ;
273273 for (auto *Arg : Args)
274274 OS << Arg->getValueAsString (" Name" ) << " , " ;
275- OS << " const SourceInfo & I);\n " ;
275+ OS << " SourceInfo I);\n " ;
276276 OS << " #endif\n " ;
277277
278278 // Emit the dispatch implementation in the source.
@@ -294,7 +294,7 @@ void ClangOpcodesEmitter::EmitGroup(raw_ostream &OS, StringRef N,
294294 OS << (AsRef ? " const " : " " ) << Name << " " << (AsRef ? " &" : " " ) << " A"
295295 << I << " , " ;
296296 }
297- OS << " const SourceInfo & I) {\n " ;
297+ OS << " SourceInfo I) {\n " ;
298298
299299 std::function<void (size_t , const Twine &)> Rec;
300300 SmallVector<const Record *, 2 > TS;
@@ -368,7 +368,7 @@ void ClangOpcodesEmitter::EmitEval(raw_ostream &OS, StringRef N,
368368 OS << (AsRef ? " const " : " " ) << Name << " "
369369 << (AsRef ? " &" : " " ) << " A" << I << " , " ;
370370 }
371- OS << " const SourceInfo & L) {\n " ;
371+ OS << " SourceInfo L) {\n " ;
372372 OS << " if (!isActive()) return true;\n " ;
373373 OS << " CurrentSource = L;\n " ;
374374
0 commit comments