Search in sources :

Example 1 with GlobalSymbol

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);
    }
}
Also used : GlobalSymbol(com.oracle.truffle.llvm.parser.model.GlobalSymbol)

Aggregations

GlobalSymbol (com.oracle.truffle.llvm.parser.model.GlobalSymbol)1