mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[llvm-size] Fix time to check if time of use bug.
This was the last tool relying on this pattern. llvm-svn: 249244
This commit is contained in:
parent
1803b2cb29
commit
23f17203af
2
test/tools/llvm-size/basic.test
Normal file
2
test/tools/llvm-size/basic.test
Normal file
@ -0,0 +1,2 @@
|
||||
RUN: llvm-size %t.blah 2>&1 | FileCheck --check-prefix=ENOENT %s
|
||||
ENOENT: {{.*}}llvm-size: {{.*}}.blah: {{[Nn]}}o such file or directory
|
@ -413,14 +413,6 @@ static bool checkMachOAndArchFlags(ObjectFile *o, StringRef file) {
|
||||
/// @brief Print the section sizes for @p file. If @p file is an archive, print
|
||||
/// the section sizes for each archive member.
|
||||
static void PrintFileSectionSizes(StringRef file) {
|
||||
// If file is not stdin, check that it exists.
|
||||
if (file != "-") {
|
||||
if (!sys::fs::exists(file)) {
|
||||
errs() << ToolName << ": '" << file << "': "
|
||||
<< "No such file\n";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Attempt to open the binary.
|
||||
ErrorOr<OwningBinary<Binary>> BinaryOrErr = createBinary(file);
|
||||
|
Loading…
x
Reference in New Issue
Block a user