Files
clang-p2996/llvm/test/tools/llvm-objdump/ARM/Inputs/debug.c
Oliver Stannard dc4a6f5db4 [llvm-objdump] Display locations of variables alongside disassembly
This adds the --debug-vars option to llvm-objdump, which prints
locations (registers/memory) of source-level variables alongside the
disassembly based on DWARF info. A vertical line is printed for each
live-range, with a label at the top giving the variable name and
location, and the position and length of the line indicating the program
counter range in which it is valid.

Differential revision: https://reviews.llvm.org/D70720
2020-07-09 09:58:00 +01:00

11 lines
118 B
C

int foo(int a, int b, int c) {
int x = a + b;
int y = x + c;
return y;
}
int bar(int a) {
a++;
return a;
}