aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2012-07-25 08:16:41 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2012-07-25 08:16:41 +0000
commitd93c5ff2b1a83f73c64ee6b8e4eff521865e92d2 (patch)
treeda76734a9f516f13c499f69f7aa8dbec2d3142de /lib/AST/MicrosoftMangle.cpp
parenta705f1f507e4a773808ee7743caf4b50fa993d67 (diff)
Add a FIXME to revisit the performance of BackRefMap later
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160709 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/MicrosoftMangle.cpp')
-rw-r--r--lib/AST/MicrosoftMangle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AST/MicrosoftMangle.cpp b/lib/AST/MicrosoftMangle.cpp
index f9245b8c32..467a45ef00 100644
--- a/lib/AST/MicrosoftMangle.cpp
+++ b/lib/AST/MicrosoftMangle.cpp
@@ -33,6 +33,8 @@ class MicrosoftCXXNameMangler {
MangleContext &Context;
raw_ostream &Out;
+ // FIXME: audit the performance of BackRefMap as it might do way too many
+ // copying of strings.
typedef std::map<std::string, unsigned> BackRefMap;
BackRefMap NameBackReferences;
bool UseNameBackReferences;