Skip to content

Commit c6a1d20

Browse files
authored
Merge pull request #301 from maleadt/tb/di_cu
Support for iterating DICompileUnits in debug info.
2 parents e9581f2 + 8f542cc commit c6a1d20

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/debuginfo.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,16 @@ register(DISubProgram, API.LLVMDISubprogramMetadataKind)
139139
line(subprogram::DISubProgram) = Int(API.LLVMDISubprogramGetLine(subprogram))
140140

141141

142+
## compile unit
143+
144+
export DICompileUnit
145+
146+
@checked struct DICompileUnit <: DIScope
147+
ref::API.LLVMMetadataRef
148+
end
149+
register(DICompileUnit, API.LLVMDICompileUnitMetadataKind)
150+
151+
142152
## other
143153

144154
export DEBUG_METADATA_VERSION, strip_debuginfo!

0 commit comments

Comments
 (0)