Thank you for the clarification. How do we access DICompositeType: line
numbers from Function &F or Module &M.
On Tue, Jan 26, 2021 at 9:43 PM David Blaikie wrote:
> the location of composite types isn't stored in a DILocation - it's stored
> in the 'file'/'line' attributes of the DICompositeTyp
the location of composite types isn't stored in a DILocation - it's stored
in the 'file'/'line' attributes of the DICompositeType (similarly, the
members have a 'file' and 'line' attribute).
See for instance line 39 of the LLVM IR in https://godbolt.org/z/o3oce5 :
!12 = distinct !DICompositeType(
Thanks for the answer.
struct Foo
{int x;};
Void bar() {
struct Foo f;
f.x = 1;
}
I'm trying to access the DILocation for DICompositeType (Foo), that is the
Source Location for struct Foo and struct members. Any pointers.
Regards.
On Sun, Jan 17, 2021 at 11:20 AM David Blaikie wrote:
> Not su