From 7d5a13799af435d7cc63cec05c65f0fbfc105433 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 29 Nov 2017 22:21:37 +0000 Subject: [PATCH] Use llvm::StringSet instead of std::set. std::set is pretty slow. We generally prefer llvm::StringSet if we don't need an sorted set. Differential Revision: https://reviews.llvm.org/D40579 llvm-svn: 319371 --- lld/wasm/Config.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lld/wasm/Config.h b/lld/wasm/Config.h index 7d0708fc751b..b933a7ffb88d 100644 --- a/lld/wasm/Config.h +++ b/lld/wasm/Config.h @@ -11,14 +11,13 @@ #define LLD_WASM_CONFIG_H #include "llvm/ADT/StringRef.h" +#include "llvm/ADT/StringSet.h" #include "llvm/BinaryFormat/Wasm.h" #include "Symbols.h" using llvm::wasm::WasmGlobal; -#include - namespace lld { namespace wasm { @@ -38,7 +37,7 @@ struct Configuration { llvm::StringRef OutputFile; llvm::StringRef Sysroot; - std::set AllowUndefinedSymbols; + llvm::StringSet<> AllowUndefinedSymbols; std::vector SearchPaths; std::vector> SyntheticGlobals; };