Displaying 1 result from an estimated 1 matches for "0d508b36".
2017 Feb 16
2
Can we keep debug information of local variable when in the optimization condition?
Hi, I'm curious that whether we can keep debug information of local variable when in the optimization condition (for example -O2, -O3) in LLVM.
For example this simple C source code:
int main()
{
int i = 5;
if(i > 5) {
return 1;
} else {
return 0;
}
}
If we compile clang -g a.c, we can get our expected result. We can check and update the local variable