[LLVMdev] Values have no names when generating *.ll files in clang and llvm 2.8 ?

Chris Lattner clattner at apple.com
Wed Oct 13 13:58:26 PDT 2010


On Oct 13, 2010, at 12:16 PM, Duncan Sands wrote:

> Hi Alexandra,
> 
>> I upgraded to llvm 2.8 and when I generate *.ll files from C/C++ with
>> clang -S -emit-llvm I obtain a *.ll file in which instructions and
>> basicblocks have no names.
>> I tried as well compiling with the -g option, but no names were given.
> 
> with dragonegg using -fverbose-asm causes names to be generated in the IR.
> Maybe clang could do this to?

This isn't a 2.8 change, the issue is that release-without-asserts builds don't add names on instructions (because IRBuilder gets a different argument).

-Chris



More information about the llvm-dev mailing list