mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
This PR implements a register context for Wasm, which uses virtual registers to resolve Wasm local, globals and stack values. The registers are used to implement support for `DW_OP_WASM_location` in the DWARF expression evaluator (#151010). This also adds a more comprehensive test, showing that we can use this to show local variables.
11 lines
120 B
C
11 lines
120 B
C
int add(int a, int b) {
|
|
// Break here
|
|
return a + b;
|
|
}
|
|
|
|
int main() {
|
|
int i = 1;
|
|
int j = 2;
|
|
return add(i, j);
|
|
}
|