diff options
author | Eli Bendersky <eliben@google.com> | 2012-12-07 22:06:56 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2012-12-07 22:06:56 +0000 |
commit | 550f0ade457c3b042fa099ecff2c022c7ab58b1e (patch) | |
tree | d4862ee34165b0a87d78b69cce1254a8da09c6a9 /lib/MC/MCAssembler.cpp | |
parent | af59e9adbd4c972d480d58260b03768c85eb2067 (diff) |
Make the contents of encoded sections SmallVector<char, N> instead of
SmallString. This makes it possible to use the length-erased SmallVectorImpl
in the interface without imposing buffer size. Thus, the size of MCInstFragment
is back down since a preallocated 8-byte contents buffer is enough.
It would be generally a good idea to rid all the fragments of SmallString as
contents, because a vector just makes more sense.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAssembler.cpp')
-rw-r--r-- | lib/MC/MCAssembler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index b2136e553e..989d8be0af 100644 --- a/lib/MC/MCAssembler.cpp +++ b/lib/MC/MCAssembler.cpp @@ -391,7 +391,7 @@ void MCAsmLayout::LayoutFragment(MCFragment *F) { /// a MCEncodedFragment. static void writeFragmentContents(const MCFragment &F, MCObjectWriter *OW) { MCEncodedFragment &EF = cast<MCEncodedFragment>(F); - OW->WriteBytes(EF.getContents().str()); + OW->WriteBytes(EF.getContents()); } /// \brief Write the fragment \p F to the output file. |