aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
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
commitd34ffcd13b64787e926a2fc00df83dab71de9751 (patch)
tree7998d72beb0e95b63ad0aa47e6649ab4ed0be827 /lib/VMCore
parent9990a617bfdd0d2ae0808ce6119ace881cb363bc (diff)
downloadexternal_llvm-d34ffcd13b64787e926a2fc00df83dab71de9751.zip
external_llvm-d34ffcd13b64787e926a2fc00df83dab71de9751.tar.gz
external_llvm-d34ffcd13b64787e926a2fc00df83dab71de9751.tar.bz2
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')
-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 1a68b89..0f6f216 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 {