As with the changes made in r297645, we do not want a potentially long link to be run, if it will ultimately fail because the map file is not writable. This change reuses the same functionality as the output file path check. See https://reviews.llvm.org/D30449 for further justification and explanations. Reviewers: ruiu Differential Revision: https://reviews.llvm.org/D31603 llvm-svn: 299420
23 lines
562 B
C++
23 lines
562 B
C++
//===- Filesystem.h ---------------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Linker
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLD_ELF_FILESYSTEM_H
|
|
#define LLD_ELF_FILESYSTEM_H
|
|
|
|
#include "lld/Core/LLVM.h"
|
|
|
|
namespace lld {
|
|
namespace elf {
|
|
void unlinkAsync(StringRef Path);
|
|
bool isFileWritable(StringRef Path, StringRef FileDescription);
|
|
}
|
|
}
|
|
|
|
#endif
|