Refactor MCInstFragment and MCDataFragment to adhere to a common interface,
[oota-llvm.git] / lib / MC / MCMachOStreamer.cpp
index cc6c853c7716fcf11800370d4bdc1e69cbfad15e..f279e74e389833424f1dcdd4bad09850b99d575f 100644 (file)
@@ -368,7 +368,7 @@ void MCMachOStreamer::EmitInstToData(const MCInst &Inst) {
   // Add the fixups and data.
   for (unsigned i = 0, e = Fixups.size(); i != e; ++i) {
     Fixups[i].setOffset(Fixups[i].getOffset() + DF->getContents().size());
-    DF->addFixup(Fixups[i]);
+    DF->getFixups().push_back(Fixups[i]);
   }
   DF->getContents().append(Code.begin(), Code.end());
 }