DW_AT_const_value instead of a location. Also added a testcase covering "frame variable," "expr" using the IR interpreter, and "expr" using the LLVM JIT. <rdar://problem/12978195> llvm-svn: 172848
20 lines
187 B
C
20 lines
187 B
C
#include <stdint.h>
|
|
|
|
extern int foo();
|
|
extern int bar();
|
|
extern int baaz(int i);
|
|
|
|
int main()
|
|
{
|
|
int32_t index;
|
|
|
|
foo();
|
|
|
|
index = 512;
|
|
|
|
if (bar())
|
|
index = 256;
|
|
|
|
baaz(index);
|
|
}
|