diff options
author | Fangrui Song <i@maskray.me> | 2023-06-23 10:04:13 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2023-06-23 10:04:13 -0700 |
commit | 620bff758d448f04483a80455e14daa91f9c2346 (patch) | |
tree | b557d71856032e9029261606e063d7875f06a649 /llvm/lib/Object/ObjectFile.cpp | |
parent | 9a868a902c2d9aec295612132445efd220c52e86 (diff) | |
download | llvm-620bff758d448f04483a80455e14daa91f9c2346.zip llvm-620bff758d448f04483a80455e14daa91f9c2346.tar.gz llvm-620bff758d448f04483a80455e14daa91f9c2346.tar.bz2 |
[llvm-addr2line] Replace checkFileExists with getOrCreateModuleInfo
GNU addr2line exits immediately if -e (default to a.out) specifies a file that
cannot be open or a directory. llvm-addr2line used to wait for input on if the
input file cannot be open and addresses are not specified in command line.
Replace the D147652 checkFileExists with getOrCreateModuleInfo to avoid
a separate `sys::fs::status` operation.
Reviewed By: sepavloff
Differential Revision: https://reviews.llvm.org/D153595
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions