aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove the CFE's lib directory from the bytecode path because LLVM shouldReid Spencer2004-12-152-14/+0
| | | | | | | be agnostic to the needs of any specific FE. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18969 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove automatic insertion of CFE's lib directory into the bytecode pathReid Spencer2004-12-152-14/+0
| | | | | | | because LLVM should be agnostic to the needs of specific front ends. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18968 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a file overwrite bug in llvm-ar introduced by changes toReid Spencer2004-12-154-12/+32
| | | | | | | | | | | createTemporaryFile semantics where it doesn't create a fully unique name if the basename doesn't exist. This functionality is now optionally provided by the boolean reuse_current parameter to createTemporaryFile and makeUnique. The default values differ because of the way these functions are used in LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18961 91177308-0d34-0410-b5e6-96231b3b80d8
* Make Win32 TimeValue::toString() re-entrant and work with mingwJeff Cohen2004-12-152-10/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18954 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix VC++ compilation errorsJeff Cohen2004-12-153-12/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18953 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-155-44/+254
| | | | | | | | | | * 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
* Add the getMagicNumber method.Reid Spencer2004-12-142-0/+38
| | | | | | | Patch contributed by Henrik Bach. Thanks Henrik! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18933 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement Win32 Path::getStatusInfo(), TimeValue::toString()Jeff Cohen2004-12-146-18/+100
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18930 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-144-10/+24
| | | | | | | Implement the new environment pointer for ExecuteAndWait git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18928 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-134-0/+90
| | | | | | | | | | | Implement three new functions to allow setting access/permission bits on the file referenced by a path. The makeReadable and makeExecutable methods replace the FileUtilities MakeFileReadable and MakeFileExecutable functions. The makeWritable function is new and provided for consistency since Path has a writable() method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18907 91177308-0d34-0410-b5e6-96231b3b80d8
* Genericize implementation of GetDLLSuffix now that we have LTDL_SHLIB_EXTReid Spencer2004-12-1310-45/+6
| | | | | | | available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18904 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug where "." or any single character file name doesn't get theReid Spencer2004-12-132-2/+2
| | | | | | | terminating / when setDirectory is called. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18886 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove an always false clause from an if statement.Reid Spencer2004-12-132-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18885 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug where directory names of length one or less where not setAlkis Evlogimenos2004-12-132-2/+2
| | | | | | | properly (examples: "", ".", "a"). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18883 91177308-0d34-0410-b5e6-96231b3b80d8
* * Add a std::ostream inserter for sys::PathReid Spencer2004-12-134-4/+4
| | | | | | | * Correct the std::string constructor to take a const reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18877 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix recent breakage of win32 buildJeff Cohen2004-12-134-18/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18876 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement new functions per new interfaceReid Spencer2004-12-132-110/+96
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18866 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351: \Reid Spencer2004-12-132-134/+108
| | | | | | | | | * Remove IsLibrary and GetLibraryPath, replaced by FindLibrary in ../Path.cpp \ * Implement GetSystemLibraryPaths and GetBytecodeLibraryPaths, instead of the \ GetSystemLibraryPath1 and GetSystemLibraryPath2 methods git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18862 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351: \Reid Spencer2004-12-131-0/+31
| | | | | | | | | * Move generic isArchive method here from Unix/Path.cpp \ * Implement isDynamicLibrary \ * Implement FindLibrary for Linker git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18861 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the size() method constReid Spencer2004-12-132-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18852 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename Path::get -> Path::toStringReid Spencer2004-12-116-22/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18802 91177308-0d34-0410-b5e6-96231b3b80d8
* Path::get -> Path::toStringReid Spencer2004-12-118-30/+42
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18785 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix residual Visual Studio build problemsJeff Cohen2004-12-092-22/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18688 91177308-0d34-0410-b5e6-96231b3b80d8
* Make this work with the ICC compiler, contributed by Bjørn WennbergChris Lattner2004-12-081-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18626 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix compilation error on Darwin.Chris Lattner2004-12-041-15/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18485 91177308-0d34-0410-b5e6-96231b3b80d8
* Move darwin-specific majik here.Chris Lattner2004-12-031-5/+27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18466 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix seriously broken implementation of GetMagicNumber.Reid Spencer2004-12-022-8/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18422 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement two new functions: LoadLibraryPermanently andReid Spencer2004-11-291-28/+62
| | | | | | | SearchForAddressOfSymbol. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18355 91177308-0d34-0410-b5e6-96231b3b80d8
* We just use ltdl's implementation for this abstraction now. Its portable toReid Spencer2004-11-291-13/+3
| | | | | | | more platforms than LLVM supports. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18352 91177308-0d34-0410-b5e6-96231b3b80d8
* Mods for compilation with llvm.Reid Spencer2004-11-291-7/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18346 91177308-0d34-0410-b5e6-96231b3b80d8
* Original version of ltdl.h from libtool 1.5.10Reid Spencer2004-11-291-0/+366
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18345 91177308-0d34-0410-b5e6-96231b3b80d8
* Original version of ltdl.c from libtool 1.5.10Reid Spencer2004-11-291-0/+4495
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18344 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the default constructor which causes the current program to beReid Spencer2004-11-294-9/+39
| | | | | | | opened as if it was a dynamic library so its symbols can be searched too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18341 91177308-0d34-0410-b5e6-96231b3b80d8
* Cast the void* handle data member to HMODULE* to keep the VC++ compilerReid Spencer2004-11-202-10/+18
| | | | | | | happy. Thanks to Henrik Bach for pointing this out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18056 91177308-0d34-0410-b5e6-96231b3b80d8
* Dynamic Library abstraction. This makes the abstraction of a single dynamicReid Spencer2004-11-1811-0/+408
| | | | | | | | library (shared library/shared object) whose symbols can be looked up dynamically. Used for plug-ins. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17940 91177308-0d34-0410-b5e6-96231b3b80d8
* * Use low-level unix I/O interface since we're on Unix.Reid Spencer2004-11-162-14/+34
| | | | | | | * Don't use variable length arrays (replaced with alloca) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17901 91177308-0d34-0410-b5e6-96231b3b80d8
* Erase non-applicable Unix comment, this is Win32Misha Brukman2004-11-162-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17896 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove useless #include.Reid Spencer2004-11-1611-12/+0
| | | | | | | Patch contributed by Jeff Cohen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17891 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify code.Reid Spencer2004-11-162-4/+2
| | | | | | | Patch contributed by Jeff Cohen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17890 91177308-0d34-0410-b5e6-96231b3b80d8
* Per code review:Reid Spencer2004-11-164-2/+10
| | | | | | | | | * get rid of (void) construct in function declarations * make toString a const member * add a default implementation of toString for Win32 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17873 91177308-0d34-0410-b5e6-96231b3b80d8
* Per code review:Reid Spencer2004-11-162-14/+8
| | | | | | | | | | | | * Clean up the StatusInfo constructor to construct all members and give them reasonable values. * Get rid of the Vector typedef and make the interface to getDirectoryContent use a std::set instead of a std::vector so the dir content is sorted. * Make the getStatusInfo method const and not return a useless boolean. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17872 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide the ThrowErrno utility.Reid Spencer2004-11-151-0/+3
| | | | | | | Patch contributed by Morten Ofstad git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17827 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust implementation to match new interface.Reid Spencer2004-11-152-4/+4
| | | | | | | Patch provided by Morten Ofstad git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17826 91177308-0d34-0410-b5e6-96231b3b80d8
* Actually get the #include correct so it compiles .. duh.Reid Spencer2004-11-159-10/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17817 91177308-0d34-0410-b5e6-96231b3b80d8
* Make it actually compile on Solaris.Reid Spencer2004-11-153-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17815 91177308-0d34-0410-b5e6-96231b3b80d8
* Consolidate the implementation of TimeValue::now() for Unix to use theReid Spencer2004-11-159-53/+32
| | | | | | | seemingly ubiquitous gettimeofday(3) call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17813 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement functionality suggested from code review: getStatusInfo shouldReid Spencer2004-11-142-2/+8
| | | | | | | returnn false if the file doesn't exist rather than throw ane exception. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17809 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure IdentifyFileType is in the sys namespace.Reid Spencer2004-11-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17806 91177308-0d34-0410-b5e6-96231b3b80d8
* Add missing include.Alkis Evlogimenos2004-11-141-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17799 91177308-0d34-0410-b5e6-96231b3b80d8
* Forget strerror_r, it causes problems. Fix later when threading mattersReid Spencer2004-11-141-5/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17783 91177308-0d34-0410-b5e6-96231b3b80d8