Rename the section embeds bitcode from ".llvmbc,.llvmbc" to "LLVM,bitcode".
The new name matches MachO section naming convention.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Don't you also need to check the segment name on macho? Or it is just invalid to create a FOO, bitcode?
Comment Actions
It will probably be better to check the segment name. I was hesitate to do
that because I couldn't figure out a way without adding more virtual method.
Here is a try to make it more robust. Note it does slightly change the
behavior because std::error not longer propagates through findBitcodeInObject.
Comment Actions
I think this is fine given that it just mean that a section with a corrupted name is not bitcode. That is the same answer you would get if the corruption had changed the name to __bitcodx.
pcc, what do you think?
You can just inline the call here (also true in the other case), as there's only one use of this variable.