diff options
author | Sourabh Singh Tomar <SourabhSingh.Tomar@amd.com> | 2019-12-03 09:29:54 +0530 |
---|---|---|
committer | Sourabh Singh Tomar <SourabhSingh.Tomar@amd.com> | 2019-12-03 09:51:43 +0530 |
commit | f1e3988aa6016188c376b9bcca1afc7559f9fbc0 (patch) | |
tree | d43635bf7de1a036b7663bfbf7639817defe9200 /llvm/bindings/go | |
parent | 3f3d0f4f4be04f2dae219c0fe76562eb01ba06d2 (diff) | |
download | bcm5719-llvm-f1e3988aa6016188c376b9bcca1afc7559f9fbc0.tar.gz bcm5719-llvm-f1e3988aa6016188c376b9bcca1afc7559f9fbc0.zip |
Recommit "[DWARF5]Addition of alignment atrribute in typedef DIE."
This revision is revised to update Go-bindings and Release Notes.
The original commit message follows.
This patch, adds support for DW_AT_alignment[DWARF5] attribute, to be emitted with typdef DIE.
When explicit alignment is specified.
Patch by Awanish Pandey <Awanish.Pandey@amd.com>
Reviewers: aprantl, dblaikie, jini.susan.george, SouraVX, alok,
deadalinx
Differential Revision: https://reviews.llvm.org/D70111
Diffstat (limited to 'llvm/bindings/go')
-rw-r--r-- | llvm/bindings/go/llvm/dibuilder.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/bindings/go/llvm/dibuilder.go b/llvm/bindings/go/llvm/dibuilder.go index e8453692716..e30a964beaf 100644 --- a/llvm/bindings/go/llvm/dibuilder.go +++ b/llvm/bindings/go/llvm/dibuilder.go @@ -504,6 +504,7 @@ type DITypedef struct { File Metadata Line int Context Metadata + AlignInBits unit32 } // CreateTypedef creates typedef type debug metadata. @@ -518,6 +519,7 @@ func (d *DIBuilder) CreateTypedef(t DITypedef) Metadata { t.File.C, C.unsigned(t.Line), t.Context.C, + C.uint32_t(t.AlignInBits), ) return Metadata{C: result} } |