Re: [cfe-users] Getting variable names in LLVM IR

2017-02-15 Thread Duncan Exon Smith via cfe-users
> On Feb 14, 2017, at 22:27, Subhendu Malakar wrote: > > Thanks for the reply. > > Indeed, I was not building "clang" from source. I'm going to build it now. > > Just curious to know if it is possible to negate the option > "discard-value-names" like "no-discard-value-names", etc. such that I

Re: [cfe-users] Getting variable names in LLVM IR

2017-02-14 Thread Duncan P. N. Exon Smith via cfe-users
> On 2017-Feb-13, at 23:10, Subhendu Malakar via cfe-users > wrote: > > Hi, > I'm a newbie in LLVM environment. > > I'm trying to generate the LLVM IR of a c file using clang. The command line > argument I'm passing is as : > "clang -O0 -S -emit-llvm test.c -c -o test.ll" If you add "-###" t