From a4c7c414efbb1317e50ac9c016fa9705c1b84d76 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Tue, 6 Jul 2004 20:29:05 +0000 Subject: [PATCH] Work around apparent Apple compiler bug which was making all mangled names start with l0_. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14651 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Mangler.cpp | 4 ++-- lib/VMCore/Mangler.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Support/Mangler.cpp b/lib/Support/Mangler.cpp index 0705c9b608c..4b346871166 100644 --- a/lib/Support/Mangler.cpp +++ b/lib/Support/Mangler.cpp @@ -71,8 +71,8 @@ std::string Mangler::getValueName(const Value *V) { } else { // Non-global, or global with internal linkage / colliding name // -> mangle. - name = "l" + utostr(V->getType()->getUniqueID()) + "_" + - makeNameProper(V->getName()); + unsigned TypeUniqueID = V->getType()->getUniqueID(); + name = "l" + utostr(TypeUniqueID) + "_" + makeNameProper(V->getName()); } } else { name = "ltmp_" + utostr(Count++) + "_" diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp index 0705c9b608c..4b346871166 100644 --- a/lib/VMCore/Mangler.cpp +++ b/lib/VMCore/Mangler.cpp @@ -71,8 +71,8 @@ std::string Mangler::getValueName(const Value *V) { } else { // Non-global, or global with internal linkage / colliding name // -> mangle. - name = "l" + utostr(V->getType()->getUniqueID()) + "_" + - makeNameProper(V->getName()); + unsigned TypeUniqueID = V->getType()->getUniqueID(); + name = "l" + utostr(TypeUniqueID) + "_" + makeNameProper(V->getName()); } } else { name = "ltmp_" + utostr(Count++) + "_"