mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
Merging r315086:
------------------------------------------------------------------------ r315086 | compnerd | 2017-10-06 11:06:59 -0700 (Fri, 06 Oct 2017) | 8 lines Bitcode: add an auto-upgrade for LTO section name The bitcode reader looks specifically for `__DATA, __objc_catlist` as a section name. However, SVN r304661 removed the spaces (the two names are functionally equivalent but do not compare equally lexicographically). This causes compatibility issues. Add an auto-upgrade path for removing the spaces as well as use the new name in the LTO plugin. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_50@318851 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -264,7 +264,7 @@ Expected<bool> hasObjCCategoryInModule(BitstreamCursor &Stream) {
|
||||
if (convertToString(Record, 0, S))
|
||||
return error("Invalid record");
|
||||
// Check for the i386 and other (x86_64, ARM) conventions
|
||||
if (S.find("__DATA, __objc_catlist") != std::string::npos ||
|
||||
if (S.find("__DATA,__objc_catlist") != std::string::npos ||
|
||||
S.find("__OBJC,__category") != std::string::npos)
|
||||
return true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user