aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/WasmObjectWriter.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-06 18:27:33 -0800
committerKazu Hirata <kazu@google.com>2021-01-06 18:27:33 -0800
commit1d0bc05551587046c4a6896215c92f7e1259d10e (patch)
tree5de082741e2895d1c06bc814244cfcc43a2f6532 /llvm/lib/MC/WasmObjectWriter.cpp
parentfbc13e9345c7c9607f0c28e0ccfa9a7baf254f29 (diff)
downloadllvm-1d0bc05551587046c4a6896215c92f7e1259d10e.zip
llvm-1d0bc05551587046c4a6896215c92f7e1259d10e.tar.gz
llvm-1d0bc05551587046c4a6896215c92f7e1259d10e.tar.bz2
[llvm] Use llvm::append_range (NFC)
Diffstat (limited to 'llvm/lib/MC/WasmObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/WasmObjectWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp
index 112c5b3..fb41c37 100644
--- a/llvm/lib/MC/WasmObjectWriter.cpp
+++ b/llvm/lib/MC/WasmObjectWriter.cpp
@@ -649,11 +649,11 @@ static void addData(SmallVectorImpl<char> &DataBytes,
Fill->getValue());
} else if (auto *LEB = dyn_cast<MCLEBFragment>(&Frag)) {
const SmallVectorImpl<char> &Contents = LEB->getContents();
- DataBytes.insert(DataBytes.end(), Contents.begin(), Contents.end());
+ llvm::append_range(DataBytes, Contents);
} else {
const auto &DataFrag = cast<MCDataFragment>(Frag);
const SmallVectorImpl<char> &Contents = DataFrag.getContents();
- DataBytes.insert(DataBytes.end(), Contents.begin(), Contents.end());
+ llvm::append_range(DataBytes, Contents);
}
}