summaryrefslogtreecommitdiffstats
path: root/lld/wasm/Writer.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-04-18 13:33:29 +0000
committerFangrui Song <maskray@google.com>2019-04-18 13:33:29 +0000
commit196a4404116e59aa1940341bb87e7025a687b88d (patch)
tree0d134c2a22d5ae684b6138767c56c8a08a2c95fe /lld/wasm/Writer.cpp
parent4cfc8d6afc827f6e1e6cf9bad9829e3dfcb71aa9 (diff)
downloadbcm5719-llvm-196a4404116e59aa1940341bb87e7025a687b88d.tar.gz
bcm5719-llvm-196a4404116e59aa1940341bb87e7025a687b88d.zip
[wasm] Simplify. NFC
llvm-svn: 358663
Diffstat (limited to 'lld/wasm/Writer.cpp')
-rw-r--r--lld/wasm/Writer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp
index 044b38319fb..7309bab0414 100644
--- a/lld/wasm/Writer.cpp
+++ b/lld/wasm/Writer.cpp
@@ -718,12 +718,12 @@ void Writer::createProducersSection() {
}
void Writer::createTargetFeaturesSection() {
- if (TargetFeatures.size() == 0)
+ if (TargetFeatures.empty())
return;
SmallVector<std::string, 8> Emitted(TargetFeatures.begin(),
TargetFeatures.end());
- std::sort(Emitted.begin(), Emitted.end());
+ llvm::sort(Emitted);
SyntheticSection *Section =
createSyntheticSection(WASM_SEC_CUSTOM, "target_features");
auto &OS = Section->getStream();
OpenPOWER on IntegriCloud