diff options
author | Steven Wu <stevenwu@apple.com> | 2016-02-29 19:40:10 +0000 |
---|---|---|
committer | Steven Wu <stevenwu@apple.com> | 2016-02-29 19:40:10 +0000 |
commit | f2fe0141cab7e761c456b9f8a12bbe401cb50278 (patch) | |
tree | d06e499fe7f2573cb315f8355a6f364ff4e577a2 /llvm/lib/Object/FunctionIndexObjectFile.cpp | |
parent | bb5d7d7ed89050a512bcf218f2a6d465facdae28 (diff) | |
download | bcm5719-llvm-f2fe0141cab7e761c456b9f8a12bbe401cb50278.tar.gz bcm5719-llvm-f2fe0141cab7e761c456b9f8a12bbe401cb50278.zip |
Rename embedded bitcode section in MachO
Summary:
Rename the section embeds bitcode from ".llvmbc,.llvmbc" to "__LLVM,__bitcode".
The new name matches MachO section naming convention.
Reviewers: rafael, pcc
Subscribers: davide, llvm-commits, joker.eph
Differential Revision: http://reviews.llvm.org/D17388
llvm-svn: 262245
Diffstat (limited to 'llvm/lib/Object/FunctionIndexObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/FunctionIndexObjectFile.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Object/FunctionIndexObjectFile.cpp b/llvm/lib/Object/FunctionIndexObjectFile.cpp index fe111de1a9c..927fd1409a6 100644 --- a/llvm/lib/Object/FunctionIndexObjectFile.cpp +++ b/llvm/lib/Object/FunctionIndexObjectFile.cpp @@ -35,10 +35,7 @@ std::unique_ptr<FunctionInfoIndex> FunctionIndexObjectFile::takeIndex() { ErrorOr<MemoryBufferRef> FunctionIndexObjectFile::findBitcodeInObject(const ObjectFile &Obj) { for (const SectionRef &Sec : Obj.sections()) { - StringRef SecName; - if (std::error_code EC = Sec.getName(SecName)) - return EC; - if (SecName == ".llvmbc") { + if (Sec.isBitcode()) { StringRef SecContents; if (std::error_code EC = Sec.getContents(SecContents)) return EC; |