diff options
author | Eli Bendersky <eliben@google.com> | 2012-12-07 19:13:57 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2012-12-07 19:13:57 +0000 |
commit | a31a894eede101b92dabd67d553d901db50e7ab5 (patch) | |
tree | 112c914abd02d7326a94583a06c2d523bb5e72ab /llvm/lib/MC/MCMachOStreamer.cpp | |
parent | 95afbf517afc7d8bee70cfde65cfc4fa0093956d (diff) | |
download | bcm5719-llvm-a31a894eede101b92dabd67d553d901db50e7ab5.tar.gz bcm5719-llvm-a31a894eede101b92dabd67d553d901db50e7ab5.zip |
Refactor MCInstFragment and MCDataFragment to adhere to a common interface,
which removes code duplication and prepares the ground for future additions.
Full discussion:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121203/158233.html
llvm-svn: 169626
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCMachOStreamer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp index cc6c853c771..f279e74e389 100644 --- a/llvm/lib/MC/MCMachOStreamer.cpp +++ b/llvm/lib/MC/MCMachOStreamer.cpp @@ -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()); } |