summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2016-09-29 02:03:50 +0000
committerEric Christopher <echristo@gmail.com>2016-09-29 02:03:50 +0000
commit1c3bb79864f45bd3c6dfc1563d72a2eb89f03a3a (patch)
tree6b9c6b2be9c9c6c4ec67eb2ebf3c969586fae6a3 /llvm/lib
parentb4b75a531e5e395d479046e9ec6bc05051b821af (diff)
downloadbcm5719-llvm-1c3bb79864f45bd3c6dfc1563d72a2eb89f03a3a.tar.gz
bcm5719-llvm-1c3bb79864f45bd3c6dfc1563d72a2eb89f03a3a.zip
Remove the default constructor and count variable from the Mangler since
we can just use the size of the DenseMap as a unique counter. llvm-svn: 282674
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/Mangler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Mangler.cpp b/llvm/lib/IR/Mangler.cpp
index ddf024df8cc..41e11b3945e 100644
--- a/llvm/lib/IR/Mangler.cpp
+++ b/llvm/lib/IR/Mangler.cpp
@@ -121,7 +121,7 @@ void Mangler::getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV,
// already.
unsigned &ID = AnonGlobalIDs[GV];
if (ID == 0)
- ID = NextAnonGlobalID++;
+ ID = AnonGlobalIDs.size();
// Must mangle the global into a unique ID.
getNameWithPrefixImpl(OS, "__unnamed_" + Twine(ID), DL, PrefixTy);
OpenPOWER on IntegriCloud