[LLVMdev] .debug_info section size in arm executable

Chris Lattner clattner at apple.com
Wed Nov 9 12:52:30 PST 2011


On Nov 9, 2011, at 10:49 AM, Jim Grosbach wrote:
>> 
>> It's not good, but people do it. Also constructing enums via & and | etc. It'd be nice to be able to get the name of whatever it is that the code generator actually produced :)
>> 
> 
> Agreed. LLVM itself does this sort of thing pretty frequently, actually, and having the enum names and values available in the debugger is very nice.

Wouldn't it be better to emit the enumerators that are actually used in a translation unit, instead of emitting all of them?  If we're not emitting them when used, that would be a problem, but I don't see a reason to care about enumerators that are never used anywhere in a program.

-Chris



More information about the llvm-dev mailing list