use of com.oracle.truffle.llvm.parser.model.GlobalSymbol in project graal by oracle.
the class SymbolNameMangling method demangle.
private static void demangle(List<? extends GlobalSymbol> list, BiFunction<Linkage, String, String> demangler) {
for (GlobalSymbol symbol : list) {
String name = symbol.getName();
if (name.startsWith(MANGLED_PREFIX)) {
name = demangler.apply(symbol.getLinkage(), name.substring(MANGLED_PREFIX.length()));
}
symbol.setName(name);
}
}
Aggregations