DIBasicType derives from DIType and so it already has slots to store the scope and location of the type. However, the DIBasicType constructor (and corresponding DIBuilder method) does not expose this, presumably because it is not needed by C or C++. In Ada it is more common to create one's own basic type. So, for Ada exposing this functionality would be handy. This patch adds a new overload of DIBuilder::createBasicType to allow this. Because only Ada uses fixed point types, the patch simply updates these DIBuilder methods unconditionally. Note that DwarfUnit already handles this scenario and so no changes were needed there.
105 KiB
105 KiB