mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-05 02:57:19 +00:00
LLVM 23 changed the MCContext constructor to take MCAsmInfo, MCRegisterInfo and MCSubtargetInfo by reference rather than by pointer, so bcc no longer builds: src/cc/bcc_debug.cc:151:68: error: no matching function for call to 'llvm::MCContext::MCContext(...)' Backport the upstream fix. It is guarded on LLVM_VERSION_MAJOR so older Clang keeps working. There is no release carrying it yet; v0.37.0 is still the newest tag. Co-authored-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com> Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>