mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 16:40:15 +00:00
In getID(), don't call getValidSymbolName to mangle external names!
llvm-svn: 4451
This commit is contained in:
parent
47bbeeac43
commit
913883dd6e
@ -139,9 +139,9 @@ public:
|
||||
//
|
||||
string getID(const Value *V, const char *Prefix, const char *FPrefix = 0) {
|
||||
string Result = FPrefix ? FPrefix : ""; // "Forced prefix"
|
||||
|
||||
|
||||
Result += V->hasName() ? V->getName() : string(Prefix);
|
||||
|
||||
|
||||
// Qualify all internal names with a unique id.
|
||||
if (!isExternal(V)) {
|
||||
int valId = idTable->Table.getValSlot(V);
|
||||
@ -153,9 +153,12 @@ public:
|
||||
valId = I->second;
|
||||
}
|
||||
Result = Result + "_" + itostr(valId);
|
||||
|
||||
// Replace or prefix problem characters in the name
|
||||
Result = getValidSymbolName(Result);
|
||||
}
|
||||
|
||||
return getValidSymbolName(Result);
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
// getID Wrappers - Ensure consistent usage...
|
||||
|
Loading…
Reference in New Issue
Block a user