[all-commits] [llvm/llvm-project] 4b15de: [ORC] Remove hard dependency on libobjc when using...
lhames via All-commits
all-commits at lists.llvm.org
Wed Mar 4 21:57:45 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 4b15decb609ac264cbfc75bc11a99ed0428301f2
https://github.com/llvm/llvm-project/commit/4b15decb609ac264cbfc75bc11a99ed0428301f2
Author: Lang Hames <lhames at gmail.com>
Date: 2020-03-04 (Wed, 04 Mar 2020)
Changed paths:
M llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h
M llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
M llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
Log Message:
-----------
[ORC] Remove hard dependency on libobjc when using MachOPlatform with LLJIT.
The LLJIT::MachOPlatformSupport class used to unconditionally attempt to
register __objc_selrefs and __objc_classlist sections. If libobjc had not
been loaded this resulted in an assertion, even if no objc sections were
actually present. This patch replaces this unconditional registration with
a check that no objce sections are present if libobjc has not been loaded.
This will allow clients to use MachOPlatform with LLJIT without requiring
libobjc for non-objc code.
More information about the All-commits
mailing list