@@ -37,10 +37,10 @@ namespace {
37
37
// An MCStreamer that reads a BenchmarkCode definition from a file.
38
38
class BenchmarkCodeStreamer : public MCStreamer , public AsmCommentConsumer {
39
39
public:
40
- explicit BenchmarkCodeStreamer (const ExegesisTarget &Target,
41
- MCContext *Context, const LLVMState &State,
40
+ explicit BenchmarkCodeStreamer (MCContext *Context, const LLVMState &State,
42
41
BenchmarkCode *Result)
43
- : MCStreamer(*Context), Target(Target), State(State), Result(Result) {}
42
+ : MCStreamer(*Context), State(State), Result(Result) {}
43
+
44
44
// Implementation of the MCStreamer interface. We only care about
45
45
// instructions.
46
46
void emitInstruction (const MCInst &Instruction,
@@ -218,7 +218,6 @@ class BenchmarkCodeStreamer : public MCStreamer, public AsmCommentConsumer {
218
218
return *RegisterNumber;
219
219
}
220
220
221
- const ExegesisTarget &Target;
222
221
const LLVMState &State;
223
222
BenchmarkCode *const Result;
224
223
unsigned InvalidComments = 0 ;
@@ -252,8 +251,7 @@ Expected<std::vector<BenchmarkCode>> readSnippets(const LLVMState &State,
252
251
TM.getTarget ().createMCObjectFileInfo (Context, /* PIC=*/ false ));
253
252
Context.setObjectFileInfo (ObjectFileInfo.get ());
254
253
Context.initInlineSourceManager ();
255
- BenchmarkCodeStreamer Streamer (State.getExegesisTarget (), &Context, State,
256
- &Result);
254
+ BenchmarkCodeStreamer Streamer (&Context, State, &Result);
257
255
258
256
std::string Error;
259
257
raw_string_ostream ErrorStream (Error);
0 commit comments