OSDN Git Service

[AutoUpgrade] Fix a compatibility issue with module flag
authorSteven Wu <stevenwu@apple.com>
Fri, 15 Sep 2017 21:12:14 +0000 (21:12 +0000)
committerSteven Wu <stevenwu@apple.com>
Fri, 15 Sep 2017 21:12:14 +0000 (21:12 +0000)
commit211a095ea64653c42eb85561fe0d204abcbdd624
tree804ed08ac5d23d4f6f4980d01242ea4770f38317
parent574c3a197fc8a26292d8c853bc06ce81ae985e58
[AutoUpgrade] Fix a compatibility issue with module flag

Summary:
After r304661, module flag to record objective-c image info section is
encoded without whitespaces after comma. The new name is equivalent to
the old one, except that when LTO a module built by old compiler and a
module built by a new compiler, it will fail with conflicting values.

Fix the issue by removing whitespaces in bitcode upgrade path.

rdar://problem/34416934

Reviewers: compnerd

Reviewed By: compnerd

Subscribers: mehdi_amini, hans, llvm-commits

Differential Revision: https://reviews.llvm.org/D37909

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313398 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/AutoUpgrade.cpp
test/Bitcode/upgrade-module-flag.ll