mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
remove mangler support for mangling local names. Mangler should only be
used with globals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75557 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -136,20 +136,6 @@ unsigned Mangler::getTypeID(const Type *Ty) {
|
||||
return E;
|
||||
}
|
||||
|
||||
std::string Mangler::getValueName(const Value *V) {
|
||||
if (const GlobalValue *GV = dyn_cast<GlobalValue>(V))
|
||||
return getValueName(GV);
|
||||
|
||||
std::string &Name = Memo[V];
|
||||
if (!Name.empty())
|
||||
return Name; // Return the already-computed name for V.
|
||||
|
||||
// Always mangle local names.
|
||||
Name = "ltmp_" + utostr(Count++) + "_" + utostr(getTypeID(V->getType()));
|
||||
return Name;
|
||||
}
|
||||
|
||||
|
||||
std::string Mangler::getValueName(const GlobalValue *GV, const char *Suffix) {
|
||||
// Check to see whether we've already named V.
|
||||
std::string &Name = Memo[GV];
|
||||
|
Reference in New Issue
Block a user