[LLVMdev] DIFactory

Renato Golin rengolin at systemcall.org
Mon Feb 21 11:07:13 PST 2011


On 21 February 2011 18:17, Devang Patel <dpatel at apple.com> wrote:
> TheCU is an internal debug info information that FE should not care about. DIBuilder is meant to use for one translation unit by FE. If all the internal debug info information is exposed to FE then you'll get DIFactory.

I agree, DIBuilder should not expose its internal structure. This is
why, on a C-only world, it's essential that you separate declaration
from instantiation on DIBuilder.

So far, it's been easy to do that with DIFactory (using a pointer to
it), but DIBuilder's get-range makes it difficult. Can you change it
to accept a list of DIDescriptors rather than Value*? I think for the
metadata it doesn't make any difference and in the back-end you can
always convert it.

cheers,
--renato



More information about the llvm-dev mailing list