commit | 64d9a3233476553fc950f0f2fc6a2cdd2a4c05cf | [log] [tgz] |
---|---|---|
author | Eli Bendersky <eliben@google.com> | Fri Dec 07 19:13:57 2012 +0000 |
committer | Eli Bendersky <eliben@google.com> | Fri Dec 07 19:13:57 2012 +0000 |
tree | 42e99ad39f9203c0caf206319b45449bf7723230 | |
parent | e4ccfef809a1a47f1386bb2767b8c77e64644435 [diff] [blame] |
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169626 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp index b1952bf..8b9bdb1 100644 --- a/lib/MC/MCELFStreamer.cpp +++ b/lib/MC/MCELFStreamer.cpp
@@ -345,7 +345,7 @@ // 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()); }