]> granicus.if.org Git - llvm/commit
Bitcode: add an auto-upgrade for LTO section name
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 6 Oct 2017 18:06:59 +0000 (18:06 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 6 Oct 2017 18:06:59 +0000 (18:06 +0000)
commitfe63ecd5a01dfbd9b6f3bb6aab723f50a7d3bff2
tree14f5627de5142a07135a095532f509693c6cba26
parent19ac6f8ea49ce239065d44c6f8f06a8f24859941
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/trunk@315086 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]