llvm-pretty
llvm-pretty copied to clipboard
`DISubprogram` combined several fields into a single `spFlags` field in LLVM 8.0
As of LLVM 8.0, the isLocal
, isDefinition
, virtuality
, and isOptimized
fields of DISubprogram
have been combined into a single spFlags
field. See https://github.com/llvm/llvm-project/commit/adcdc1bd0a8802f5260162b8b63762724bf1ff32. For instance, what used to be displayed as:
!DISubprogram(..., isDefinition: True, isOptimized: True, ...)
Is now displayed as:
!DISubprogram(..., spFlags: DISPFlagDefinition | DISPFlagOptimized, ...)
At first, I thought that this change in syntax was causing llvm-as
to reject the old style. But I was mistaken in that belief: the root cause was actually a separate issue in https://github.com/GaloisInc/llvm-pretty-bc-parser/issues/211. As such, this issue isn't as high of a priority as I originally believed it to be.