llvm-pretty icon indicating copy to clipboard operation
llvm-pretty copied to clipboard

`DISubprogram` combined several fields into a single `spFlags` field in LLVM 8.0

Open RyanGlScott opened this issue 1 year ago • 1 comments

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, ...)

RyanGlScott avatar Mar 24 '23 14:03 RyanGlScott

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.

RyanGlScott avatar Mar 24 '23 15:03 RyanGlScott