mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
For PR351:
* Fix implementation and documentation about LLVMGCCDIR/bytecode-libs * Add the makeUnique method, replacement for getUniqueFilename in Support. * Add the sys::CopyFile function, replacement for CopyFile in Support. * Move GetLLVMConfigDir() into generic code area since its generic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18947 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -23,6 +23,14 @@ using namespace sys;
|
||||
//=== independent code.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Path
|
||||
Path::GetLLVMConfigDir() {
|
||||
Path result;
|
||||
if (result.setDirectory(LLVM_ETCDIR))
|
||||
return result;
|
||||
return GetLLVMDefaultConfigDir();
|
||||
}
|
||||
|
||||
LLVMFileType
|
||||
sys::IdentifyFileType(const char*magic, unsigned length) {
|
||||
assert(magic && "Invalid magic number string");
|
||||
|
Reference in New Issue
Block a user