diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-10-06 18:06:59 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-10-06 18:06:59 +0000 |
commit | 46a59fdab6d22fd701c875df31af9bc26eec24ef (patch) | |
tree | 3c69de5d5bf893386191d2e6a0f27ee87238a74a /llvm/lib/AsmParser | |
parent | 96b04b68ed15e596d220449634933815ea09c35c (diff) | |
download | bcm5719-llvm-46a59fdab6d22fd701c875df31af9bc26eec24ef.tar.gz bcm5719-llvm-46a59fdab6d22fd701c875df31af9bc26eec24ef.zip |
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.
llvm-svn: 315086
Diffstat (limited to 'llvm/lib/AsmParser')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 4dc5d81cd08..52c5b9fb29a 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -241,6 +241,7 @@ bool LLParser::ValidateEndOfModule() { llvm::UpgradeDebugInfo(*M); UpgradeModuleFlags(*M); + UpgradeSectionAttributes(*M); if (!Slots) return false; |