[llvm] [Hexagon] Fix link error with BUILD_SHARED_LIBS=ON (PR #191014)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 10:20:57 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-hexagon
Author: Krzysztof Parzyszek (kparzysz)
<details>
<summary>Changes</summary>
/usr/bin/ld: lib/Target/Hexagon/CMakeFiles/LLVMHexagonCodeGen.dir/Hexago nTargetMachine.cpp.o: in function `llvm::HexagonTargetMachine::parseMach ineFunctionInfo(llvm::yaml::MachineFunctionInfo const&, llvm::PerFunctio nMIParsingState&, llvm::SMDiagnostic&, llvm::SMRange&) const': HexagonTargetMachine.cpp:(.text._ZNK4llvm20HexagonTargetMachine24parseMa chineFunctionInfoERKNS_4yaml19MachineFunctionInfoERNS_25PerFunctionMIPar singStateERNS_12SMDiagnosticERNS_7SMRangeE+0x4a): undefined reference to
`llvm::parseNamedRegisterReference(llvm::PerFunctionMIParsingState&, ll
vm::Register&, llvm::StringRef, llvm::SMDiagnostic&)' clang++: error: linker command failed with exit code 1 (use -v to see in vocation)
---
Full diff: https://github.com/llvm/llvm-project/pull/191014.diff
1 Files Affected:
- (modified) llvm/lib/Target/Hexagon/CMakeLists.txt (+1)
``````````diff
diff --git a/llvm/lib/Target/Hexagon/CMakeLists.txt b/llvm/lib/Target/Hexagon/CMakeLists.txt
index b4716693c3dc9..7a442a44bcbe8 100644
--- a/llvm/lib/Target/Hexagon/CMakeLists.txt
+++ b/llvm/lib/Target/Hexagon/CMakeLists.txt
@@ -89,6 +89,7 @@ add_llvm_target(HexagonCodeGen
HexagonInfo
IPO
MC
+ MIRParser
Scalar
SelectionDAG
Support
``````````
</details>
https://github.com/llvm/llvm-project/pull/191014
More information about the llvm-commits
mailing list