mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
s/LLVM_ON_WIN32/_WIN32/, lld
LLVM_ON_WIN32 is set exactly with MSVC and MinGW (but not Cygwin) in HandleLLVMOptions.cmake, which is where _WIN32 defined too. Just use the default macro instead of a reinvented one. See thread "Replacing LLVM_ON_WIN32 with just _WIN32" on llvm-dev and cfe-dev. No intended behavior change. llvm-svn: 329696
This commit is contained in:
parent
0da2290958
commit
fb64730005
@ -97,7 +97,7 @@ typedef std::pair<std::unique_ptr<MemoryBuffer>, std::error_code> MBErrPair;
|
||||
// Create a std::future that opens and maps a file using the best strategy for
|
||||
// the host platform.
|
||||
static std::future<MBErrPair> createFutureForFile(std::string Path) {
|
||||
#if LLVM_ON_WIN32
|
||||
#if _WIN32
|
||||
// On Windows, file I/O is relatively slow so it is best to do this
|
||||
// asynchronously.
|
||||
auto Strategy = std::launch::async;
|
||||
|
@ -44,7 +44,7 @@ using namespace lld::elf;
|
||||
// The calling thread returns almost immediately.
|
||||
void elf::unlinkAsync(StringRef Path) {
|
||||
// Removing a file is async on windows.
|
||||
#if defined(LLVM_ON_WIN32)
|
||||
#if defined(_WIN32)
|
||||
sys::fs::remove(Path);
|
||||
#else
|
||||
if (!ThreadsEnabled || !sys::fs::exists(Path) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user