diff options
| author | Owen Anderson <resistor@mac.com> | 2009-06-23 20:17:22 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-06-23 20:17:22 +0000 |
| commit | ac637c60998dded7d0051f17b27db78d99510f5b (patch) | |
| tree | 4daa65427ce630a0a020fb9ca1d426187ab98aa3 /lib/VMCore | |
| parent | 16b38426a8d255a8fc0a01bb2027a70d37d5e533 (diff) | |
| download | external_llvm-ac637c60998dded7d0051f17b27db78d99510f5b.zip external_llvm-ac637c60998dded7d0051f17b27db78d99510f5b.tar.gz external_llvm-ac637c60998dded7d0051f17b27db78d99510f5b.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.cpp | 6 |
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 { |
