aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-23 20:17:22 +0000
committerOwen Anderson <resistor@mac.com>2009-06-23 20:17:22 +0000
commit6f2c64d70aad5328a843a6f6a6547ada69ead33b (patch)
tree4daa65427ce630a0a020fb9ca1d426187ab98aa3 /lib/VMCore
parentdcee6847555373c6f352370042486ef904a3d55b (diff)
downloadexternal_llvm-6f2c64d70aad5328a843a6f6a6547ada69ead33b.zip
external_llvm-6f2c64d70aad5328a843a6f6a6547ada69ead33b.tar.gz
external_llvm-6f2c64d70aad5328a843a6f6a6547ada69ead33b.tar.bz2
Revert my last series of commits related to Timer and 64-bit atomics. Not all the targets
we care about are capable of supporting it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Mangler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp
index 6be06d2..1a68b89 100644
--- a/lib/VMCore/Mangler.cpp
+++ b/lib/VMCore/Mangler.cpp
@@ -165,10 +165,10 @@ std::string Mangler::getValueName(const GlobalValue *GV, const char * Suffix) {
} else if (!GV->hasName()) {
// Must mangle the global into a unique ID.
unsigned TypeUniqueID = getTypeID(GV->getType());
- static int32_t GlobalID = 0;
+ static uint32_t GlobalID = 0;
- int32_t OldID = GlobalID;
- sys::AtomicIncrement32(&GlobalID);
+ unsigned OldID = GlobalID;
+ sys::AtomicIncrement(&GlobalID);
Name = "__unnamed_" + utostr(TypeUniqueID) + "_" + utostr(OldID);
} else {