[bpf] fix build
authorAlexei Starovoitov <alexei.starovoitov@gmail.com>
Fri, 20 Mar 2015 02:35:29 +0000 (02:35 +0000)
committerAlexei Starovoitov <alexei.starovoitov@gmail.com>
Fri, 20 Mar 2015 02:35:29 +0000 (02:35 +0000)
fix BPF backend build broken by r232699

llvm-svn: 232795

llvm/lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.cpp

index 15a773c..fd04001 100644 (file)
@@ -64,7 +64,6 @@ static MCCodeGenInfo *createBPFMCCodeGenInfo(StringRef TT, Reloc::Model RM,
 static MCStreamer *createBPFMCStreamer(const Triple &T,
                                        MCContext &Ctx, MCAsmBackend &MAB,
                                        raw_ostream &OS, MCCodeEmitter *Emitter,
-                                       const MCSubtargetInfo &STI,
                                        bool RelaxAll) {
   return createELFStreamer(Ctx, MAB, OS, Emitter, RelaxAll);
 }
@@ -103,7 +102,7 @@ extern "C" void LLVMInitializeBPFTargetMC() {
   TargetRegistry::RegisterMCAsmBackend(TheBPFTarget, createBPFAsmBackend);
 
   // Register the object streamer
-  TargetRegistry::RegisterMCObjectStreamer(TheBPFTarget, createBPFMCStreamer);
+  TargetRegistry::RegisterELFStreamer(TheBPFTarget, createBPFMCStreamer);
 
   // Register the MCInstPrinter.
   TargetRegistry::RegisterMCInstPrinter(TheBPFTarget, createBPFMCInstPrinter);