summaryrefslogtreecommitdiff
path: root/lib/VMCore/Mangler.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-23 18:01:04 +0000
committerOwen Anderson <resistor@mac.com>2009-06-23 18:01:04 +0000
commit0de9953e888c30e0a01df90c972b1f2e2dce1614 (patch)
tree7998d72beb0e95b63ad0aa47e6649ab4ed0be827 /lib/VMCore/Mangler.cpp
parentbb3231f7c491ce8d8945833a7515a25027e1c8a7 (diff)
downloadllvm-0de9953e888c30e0a01df90c972b1f2e2dce1614.tar.gz
llvm-0de9953e888c30e0a01df90c972b1f2e2dce1614.tar.bz2
llvm-0de9953e888c30e0a01df90c972b1f2e2dce1614.tar.xz
Label the existing atomic functions as 32-bit specific, and add a 64-bit one that will be useful in
the near future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Mangler.cpp')
-rw-r--r--lib/VMCore/Mangler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp
index 1a68b89054..0f6f216ceb 100644
--- a/lib/VMCore/Mangler.cpp
+++ b/lib/VMCore/Mangler.cpp
@@ -168,7 +168,7 @@ std::string Mangler::getValueName(const GlobalValue *GV, const char * Suffix) {
static uint32_t GlobalID = 0;
unsigned OldID = GlobalID;
- sys::AtomicIncrement(&GlobalID);
+ sys::AtomicIncrement32(&GlobalID);
Name = "__unnamed_" + utostr(TypeUniqueID) + "_" + utostr(OldID);
} else {