Skip to content

Commit 8f542cc

Browse files
committed
Support for iterating DICompileUnits in debug info.
1 parent 47a7a38 commit 8f542cc

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)