summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-05-22 17:16:39 +0000
committerReid Kleckner <reid@kleckner.net>2013-05-22 17:16:39 +0000
commit7dafb232323fe9a620ca08ab25c87ee90e30e408 (patch)
tree02e62456fe57c0ec62da160dc003bf4a98469f4f /clang/lib/AST/MicrosoftMangle.cpp
parent1fc96a323e3c7101791955347fe5fcd83c76f92a (diff)
downloadbcm5719-llvm-7dafb232323fe9a620ca08ab25c87ee90e30e408.tar.gz
bcm5719-llvm-7dafb232323fe9a620ca08ab25c87ee90e30e408.zip
Use StringMap in MicrosoftMangle to resolve FIXME.
llvm-svn: 182488
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r--clang/lib/AST/MicrosoftMangle.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp
index d03060b391d..e360a934083 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/lib/AST/MicrosoftMangle.cpp
@@ -23,6 +23,7 @@
#include "clang/Basic/ABI.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/TargetInfo.h"
+#include "llvm/ADT/StringMap.h"
#include <map>
using namespace clang;
@@ -48,9 +49,7 @@ class MicrosoftCXXNameMangler {
const NamedDecl *Structor;
unsigned StructorType;
- // FIXME: audit the performance of BackRefMap as it might do way too many
- // copying of strings.
- typedef std::map<std::string, unsigned> BackRefMap;
+ typedef llvm::StringMap<unsigned> BackRefMap;
BackRefMap NameBackReferences;
bool UseNameBackReferences;
OpenPOWER on IntegriCloud