[wasm] Simplify. NFC
llvm-svn: 358663
diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp
index 044b383..7309bab 100644
--- a/lld/wasm/Writer.cpp
+++ b/lld/wasm/Writer.cpp
@@ -718,12 +718,12 @@
}
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();