use of com.oracle.truffle.llvm.runtime.LLVMSymbol in project graal by oracle.
the class LLVMDebuggerScopeFactory method toDebuggerScope.
@TruffleBoundary
private static LLVMDebuggerScopeEntries toDebuggerScope(LLVMScopeChain scope, DataLayout dataLayout, LLVMContext context) {
final LLVMDebuggerScopeEntries entries = new LLVMDebuggerScopeEntries();
LLVMScopeChain next = scope;
while (next != null) {
for (LLVMSymbol symbol : next.getScope().values()) {
if (symbol.isGlobalVariable()) {
LLVMGlobal global = symbol.asGlobalVariable();
Object value = CommonNodeFactory.toGenericDebuggerValue(global.getPointeeType(), context.getSymbolUncached(global), dataLayout);
entries.add(LLVMIdentifier.toGlobalIdentifier(global.getName()), value);
}
}
next = next.getNext();
}
return entries;
}
Aggregations