Added overloads to the mangling function

This commit is contained in:
arookas 2016-02-01 19:15:55 -05:00
parent 116aa7996f
commit 04aba6938b

View file

@ -202,6 +202,12 @@ namespace arookas {
}
// static util
static string MangleSystemSymbol(string basename) {
return MangleSymbolName(basename, 0, true, false);
}
static string MangleLocalSymbol(string basename, ulong id) {
return MangleSymbolName(basename, id, false, true);
}
static string MangleSymbolName(string basename, ulong id, bool system, bool local) {
if (!system && !local) {
return basename;