Skip to content

Commit

Permalink
ir: update DISPFlag enum to LLVM 9.0
Browse files Browse the repository at this point in the history
Updates #101.
  • Loading branch information
mewmew committed Oct 31, 2019
1 parent ae6206c commit c9a607e
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 7 deletions.
20 changes: 20 additions & 0 deletions asm/enum/dispflag_string2enum.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions ir/enum/dispflag_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 13 additions & 7 deletions ir/enum/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,19 @@ const (
type DISPFlag uint64

// Subprogram specific flags.
//
// From include/llvm/IR/DebugInfoFlags.def (LLVM 9.0)
const (
DISPFlagZero DISPFlag = 0
DISPFlagVirtual DISPFlag = 1 << 0
DISPFlagPureVirtual DISPFlag = 1 << 1
DISPFlagLocalToUnit DISPFlag = 1 << 2
DISPFlagDefinition DISPFlag = 1 << 3
DISPFlagOptimized DISPFlag = 1 << 4
DISPFlagZero DISPFlag = 0
DISPFlagVirtual DISPFlag = 1
DISPFlagPureVirtual DISPFlag = 2
DISPFlagLocalToUnit DISPFlag = 1 << 2
DISPFlagDefinition DISPFlag = 1 << 3
DISPFlagOptimized DISPFlag = 1 << 4
DISPFlagPure DISPFlag = 1 << 5
DISPFlagElemental DISPFlag = 1 << 6
DISPFlagRecursive DISPFlag = 1 << 7
DISPFlagMainSubprogram DISPFlag = 1 << 8

// Virtuality and non-virtuality.
DISPFlagNonvirtual = DISPFlagZero
Expand All @@ -202,7 +208,7 @@ const (
// Track first and last subprogram specific flag, used by diSPFlagsString in
// ir/metadata/helper.go.
DISPFlagFirst = DISPFlagVirtual
DISPFlagLast = DISPFlagOptimized
DISPFlagLast = DISPFlagMainSubprogram
)

//go:generate stringer -linecomment -type DLLStorageClass
Expand Down

0 comments on commit c9a607e

Please sign in to comment.