#include "llvm/IR/Module.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
-#include "llvm/Support/PathV1.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/system_error.h"
int TmpArchiveFD;
SmallString<128> TmpArchive;
error_code EC = sys::fs::unique_file("temp-archive-%%%%%%%.a", TmpArchiveFD,
- TmpArchive);
+ TmpArchive, true, 0666);
if (EC)
return true;
return true;
}
- // Set correct read and write permissions after temporary file is moved
- // to final destination path.
- if (sys::Path(archPath).makeReadableOnDisk(ErrMsg))
- return true;
- if (sys::Path(archPath).makeWriteableOnDisk(ErrMsg))
- return true;
-
return false;
}