diff options
author | Reid Kleckner <rnk@google.com> | 2017-11-10 19:12:01 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-11-10 19:12:01 +0000 |
commit | 8320a1753f044a7762cae23b8b2e0bb96c74edab (patch) | |
tree | d3a7ae1af2448800a8375961dfc5599c76a4e27b | |
parent | 8914a6d50e27569c6506e5a363d05d52d459ac41 (diff) | |
download | bcm5719-llvm-8320a1753f044a7762cae23b8b2e0bb96c74edab.tar.gz bcm5719-llvm-8320a1753f044a7762cae23b8b2e0bb96c74edab.zip |
Use DenseMap instead of std::map in fixupExports
Some DLLs have many exports, and this data structure shows up in the
profile of linking content.dll.
llvm-svn: 317910
-rw-r--r-- | lld/COFF/DriverUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/COFF/DriverUtils.cpp b/lld/COFF/DriverUtils.cpp index c03b9727457..64856999902 100644 --- a/lld/COFF/DriverUtils.cpp +++ b/lld/COFF/DriverUtils.cpp @@ -594,7 +594,7 @@ void fixupExports() { } // Uniquefy by name. - std::map<StringRef, Export *> Map; + DenseMap<StringRef, Export *> Map(Config->Exports.size()); std::vector<Export> V; for (Export &E : Config->Exports) { auto Pair = Map.insert(std::make_pair(E.ExportName, &E)); |