Skip to content

Commit

Permalink
Add discriminator field to DICompositeType, bump version to 0.9.0
Browse files Browse the repository at this point in the history
Major version bump because this is an exported datatype, this would
cause breakage for anyone using this constructor downstream.

This field was added in LLVM 7.

 - Github commit: llvm-mirror/llvm@04aa650
 - LLVM review: https://reviews.llvm.org/D42082

See also GaloisInc/llvm-pretty-bc-parser#105
  • Loading branch information
langston-barrett committed Dec 11, 2018
1 parent 1a35b80 commit 593d3a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
16 changes: 8 additions & 8 deletions llvm-pretty.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: llvm-pretty
Version: 0.8.0
Version: 0.9.0
License: BSD3
License-file: LICENSE
Author: Trevor Elliott
Expand Down Expand Up @@ -33,13 +33,13 @@ Library
Text.LLVM.DebugUtils
Other-modules: Text.LLVM.Util

Build-depends: base >= 4 && < 5,
containers >= 0.4,
parsec >= 3,
pretty >= 1.0.1,
monadLib >= 3.6.1,
microlens >= 0.4,
microlens-th >= 0.4,
Build-depends: base >= 4 && < 5,
containers >= 0.4,
parsec >= 3,
pretty >= 1.0.1,
monadLib >= 3.6.1,
microlens >= 0.4,
microlens-th >= 0.4,
template-haskell >= 2.7

Ghc-options: -Wall
1 change: 1 addition & 0 deletions src/Text/LLVM/AST.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,7 @@ data DICompositeType' lab = DICompositeType
, dictVTableHolder :: Maybe (ValMd' lab)
, dictTemplateParams :: Maybe (ValMd' lab)
, dictIdentifier :: Maybe String
, dictDiscriminator :: Maybe (ValMd' lab)
} deriving (Data, Eq, Functor, Generic, Generic1, Ord, Show, Typeable)

type DICompositeType = DICompositeType' 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 @@ -940,6 +940,7 @@ ppDICompositeType' pp ct = "!DICompositeType"
, (("templateParams:" <+>) . ppValMd' pp) <$> (dictTemplateParams ct)
, (("identifier:" <+>) . doubleQuotes . text)
<$> (dictIdentifier ct)
, (("discriminator:" <+>) . ppValMd' pp) <$> (dictDiscriminator ct)
])

ppDICompositeType :: LLVM => DICompositeType -> Doc
Expand Down

0 comments on commit 593d3a9

Please sign in to comment.