[all-commits] [llvm/llvm-project] 4ae0ab: [BitCode] Add noprofile to getAttrFromCode()
Nathan Chancellor via All-commits
all-commits at lists.llvm.org
Sun Jun 27 12:01:47 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4ae0ab095bf97123c2d2a6aa2e82dcc25cf040f1
https://github.com/llvm/llvm-project/commit/4ae0ab095bf97123c2d2a6aa2e82dcc25cf040f1
Author: Nathan Chancellor <nathan at kernel.org>
Date: 2021-06-27 (Sun, 27 Jun 2021)
Changed paths:
M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
M llvm/test/Bitcode/attributes.ll
Log Message:
-----------
[BitCode] Add noprofile to getAttrFromCode()
After D104475 / D104658, building the Linux kernel with ThinLTO is
broken:
ld.lld: error: Unknown attribute kind (73) (Producer: 'LLVM13.0.0git'
Reader: 'LLVM 13.0.0git')
getAttrFromCode() has never handled this attribute so it is written
during the ThinLTO phase but it cannot be handled during the linking
phase.
Add noprofile to getAttrFromCode() so that disassembly works properly.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D104995
More information about the All-commits
mailing list