[llvm] f331ccc - [ORC] Fix macho section name typo
Keith Smiley via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 19 09:50:01 PDT 2022
Author: Keith Smiley
Date: 2022-09-19T09:49:46-07:00
New Revision: f331ccca26733857fef4dd3272db6aaeed7907b9
URL: https://github.com/llvm/llvm-project/commit/f331ccca26733857fef4dd3272db6aaeed7907b9
DIFF: https://github.com/llvm/llvm-project/commit/f331ccca26733857fef4dd3272db6aaeed7907b9.diff
LOG: [ORC] Fix macho section name typo
I don't think __obj_selrefs is a thing, but __objc_selrefs definitely
is.
Differential Revision: https://reviews.llvm.org/D130221
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp b/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
index 070118c1f8915..aa273db238f56 100644
--- a/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
@@ -67,7 +67,7 @@ class LinkGraphMaterializationUnit : public MaterializationUnit {
static bool hasMachOInitSection(LinkGraph &G) {
for (auto &Sec : G.sections())
- if (Sec.getName() == "__DATA,__obj_selrefs" ||
+ if (Sec.getName() == "__DATA,__objc_selrefs" ||
Sec.getName() == "__DATA,__objc_classlist" ||
Sec.getName() == "__TEXT,__swift5_protos" ||
Sec.getName() == "__TEXT,__swift5_proto" ||
More information about the llvm-commits
mailing list