Skip to content

Commit

Permalink
Add DebugInfoAssignID (added in LLVM 17)
Browse files Browse the repository at this point in the history
See
llvm/llvm-project@a2620e0
for the LLVM commit in which this was introduced.

This is part of an eventual fix for GaloisInc/llvm-pretty-bc-parser#258.
  • Loading branch information
RyanGlScott committed Sep 28, 2023
1 parent 8124fc0 commit 28a5b76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Text/LLVM/AST.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,8 @@ data DebugInfo' lab
| DebugInfoImportedEntity (DIImportedEntity' lab)
| DebugInfoLabel (DILabel' lab)
| DebugInfoArgList (DIArgList' lab)
| DebugInfoAssignID
-- ^ Introduced in LLVM 17.
deriving (Data, Eq, Functor, Generic, Generic1, Ord, Show, Typeable)

type DebugInfo = DebugInfo' BlockLabel
Expand Down
1 change: 1 addition & 0 deletions src/Text/LLVM/PP.hs
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,7 @@ ppDebugInfo' pp di = case di of
DebugInfoImportedEntity diip -> ppDIImportedEntity' pp diip
DebugInfoLabel dil -> ppDILabel' pp dil
DebugInfoArgList args -> ppDIArgList' pp args
DebugInfoAssignID -> "!DIAssignID()"

ppDebugInfo :: Fmt DebugInfo
ppDebugInfo = ppDebugInfo' ppLabel
Expand Down

0 comments on commit 28a5b76

Please sign in to comment.