[llvm] [Object][COFF] Introduce the .llvm.arm64x section (PR #205156)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 23 00:48:08 PDT 2026
================
@@ -1560,6 +1560,26 @@ std::unique_ptr<MemoryBuffer> COFFObjectFile::getHybridObjectView() const {
return HybridView;
}
+std::optional<MemoryBufferRef> COFFObjectFile::findHybridObjectSection() const {
+ if (getDOSHeader() || getMachine() != COFF::IMAGE_FILE_MACHINE_ARM64)
+ return std::nullopt;
+
+ // Search the .llvm.arm64x section, which may be used to embed a full ARM64EC
+ // object file into an ARM64 object file.
+ for (const SectionRef &S : sections()) {
----------------
jh7370 wrote:
Nit: `SectionRef` is intended for copying, not using a reference, I believe.
https://github.com/llvm/llvm-project/pull/205156
More information about the llvm-commits
mailing list