This is an archive of the discontinued LLVM Phabricator instance.

Refactoring BitcodeFile constructor. NFC.
Needs ReviewPublic

Authored by rdhindsa on May 10 2018, 1:04 PM.

Details

Summary

Instead of creating MemoryBufferRef for BitcodeFile in InputFile.cpp, this patch adds a generateMemoryBufferRef in LTO.h. This ensures that LTO processing based on LTO options is done in LTO.cpp/LTO.h files.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

rdhindsa created this revision.May 10 2018, 1:04 PM
ruiu added a comment.May 10 2018, 1:10 PM

Thank you for doing this, but I don't think this patch simplifies the code, because everything that was executed without this patch is still executed with this patch too. You just moved code from one place to another.