[llvm] r234957 - uselistorder: Pull the bit through WriteToBitcodFile()
Duncan P. N. Exon Smith
dexonsmith at apple.com
Wed Apr 15 09:50:15 PDT 2015
> On 2015-Apr-15, at 08:56, Rafael EspĂndola <rafael.espindola at gmail.com> wrote:
>
>>> -static void saveBCFile(StringRef Path, Module &M) {
>>> +static void saveBCFile(StringRef Path, Module &M,
>>> + bool ShouldPreserveUseListOrder) {
>>
>> (This was fixed by r234958; apparently I don't build this.)
>
> You need to define LLVM_BINUTILS_INCDIR for it to build.
Makes sense; I don't have one of those. I should be doing pre-commit
review for gold-plugin anyway (since I can't test it).
>>> std::error_code EC;
>>> raw_fd_ostream OS(Path, EC, sys::fs::OpenFlags::F_None);
>>> if (EC)
>>> message(LDPL_FATAL, "Failed to write the output file.");
>>> - WriteBitcodeToFile(&M, OS);
>>> + WriteBitcodeToFile(&M, OS, /* ShouldPreserveUseListOrder */ true);
>>
>> @Rafael and Nick, `saveBCFile()` is only used for `OT_SAVE_TEMPS`, so
>> I took the liberty of turning this on.
>>
>> Let me know if you disagree and I'll revert that part of the commit.
>
> I think it is reasonable.
Cool.
More information about the llvm-commits
mailing list