]> granicus.if.org Git - llvm/commit
Merging r315086:
authorTom Stellard <tstellar@redhat.com>
Wed, 22 Nov 2017 17:49:17 +0000 (17:49 +0000)
committerTom Stellard <tstellar@redhat.com>
Wed, 22 Nov 2017 17:49:17 +0000 (17:49 +0000)
commitd07b802e93abfd9d33ef6dc4439058dfb8fb64c0
treecda33b1fd8473c8c932810f78d226f9fe8fd90aa
parent138a40df8f33c6f5afcd402d3ab8276791465c3c
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
include/llvm/IR/AutoUpgrade.h
lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/BitcodeReader.cpp
lib/IR/AutoUpgrade.cpp
test/Bitcode/upgrade-section-name.ll [new file with mode: 0644]