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

John McCall rjmccall at apple.com
Thu Oct 14 01:13:15 PDT 2010


On Oct 14, 2010, at 12:21 AM, Duncan Sands wrote:
>> 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).
> 
> having the output of clang depend on whether clang was built with assertions
> on or not sounds like a bad idea to me.

While I agree in the abstract that this is an independent choice from
assertions and optimization, I'm not convinced that it's an important
enough feature to seriously complicate our configuration over.
Nobody really wants names unless they're debugging a compiler,
and even then they're not crucial.  They should be on by default as
long as Debug builds are the default, but we don't want people to
unintentionally make production compilers with names enabled.

I think there's a case to be made that we should kill names based on
--enable-optimized instead of --disable-assertions.  The only problem
is that --enable-optimized doesn't actually turn into a -D right now.

John.



More information about the llvm-dev mailing list