mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 15:41:35 +08:00
[mac/lld] Implement -t
Goes well with `-why_load` to get an idea of load order. Differential Revision: https://reviews.llvm.org/D92583
This commit is contained in:
@@ -187,9 +187,9 @@ uint32_t macho::getModTime(StringRef path) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void macho::printWhyLoad(StringRef reason, const InputFile *f) {
|
||||
if (!config->printWhyLoad)
|
||||
return;
|
||||
lld::outs() << reason << " forced load of " << toString(f)
|
||||
<< '\n';
|
||||
void macho::printArchiveMemberLoad(StringRef reason, const InputFile *f) {
|
||||
if (config->printEachFile)
|
||||
lld::outs() << toString(f) << '\n';
|
||||
if (config->printWhyLoad)
|
||||
lld::outs() << reason << " forced load of " << toString(f) << '\n';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user