summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement GetTimeUsage correctly.Reid Spencer2004-12-201-4/+8
| | | | llvm-svn: 19074
* Provide a getrusage based implementation of GetTotalMemoryUsage and useReid Spencer2004-12-201-0/+4
| | | | | | the ru_maxrss field as an approximation. llvm-svn: 19072
* Consistently use the same #if style. Also, fix a bug testing for sbrk(3)Reid Spencer2004-12-201-4/+4
| | | | llvm-svn: 19071
* Keep up with lib/System changesJeff Cohen2004-12-202-31/+47
| | | | llvm-svn: 19057
* For PR351:Reid Spencer2004-12-202-6/+121
| | | | | | | | * Implement GetMallocUsage to get usage of malloc heap * Implement GetMemoryUsage to get total memory usage of process * Implement GetTimeUsage to get elapsed/user/system time llvm-svn: 19055
* For PR351:Reid Spencer2004-12-201-1/+1
| | | | | | No need for Unix/SUS/Process.cpp any more, just ifdef it. llvm-svn: 19054
* * Use "" for LLVM include files, not <>Misha Brukman2004-12-201-5/+3
| | | | | | | * llvm/Config/alloca.h already #includes config.h * Minor readability/stylistic changes llvm-svn: 19048
* Use <> for system #include filesMisha Brukman2004-12-191-1/+1
| | | | llvm-svn: 19046
* Make references to 'struct sigaction' compile under Solaris.Brian Gaeke2004-12-191-0/+1
| | | | llvm-svn: 19045
* For PR351:Reid Spencer2004-12-191-22/+99
| | | | | | | Move the functionality of RunProgramWithTimeout into the ExecuteAndWait function: support a timeout and I/O redirects llvm-svn: 19043
* For PR351:Reid Spencer2004-12-191-0/+1
| | | | | | Add a needed include. llvm-svn: 19042
* Fix win32 breakageJeff Cohen2004-12-181-0/+1
| | | | llvm-svn: 19028
* Expository comment submitted by Henrik BachJeff Cohen2004-12-161-0/+3
| | | | llvm-svn: 18976
* Change the signatures of the destroyFile and destroyDirectory methods toReid Spencer2004-12-152-4/+4
| | | | | | const because they affect the file system, not the Path object. llvm-svn: 18973
* Remove the CFE's lib directory from the bytecode path because LLVM shouldReid Spencer2004-12-151-7/+0
| | | | | | be agnostic to the needs of any specific FE. llvm-svn: 18969
* Remove automatic insertion of CFE's lib directory into the bytecode pathReid Spencer2004-12-151-7/+0
| | | | | | because LLVM should be agnostic to the needs of specific front ends. llvm-svn: 18968
* Fix a file overwrite bug in llvm-ar introduced by changes toReid Spencer2004-12-152-6/+16
| | | | | | | | | | 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. llvm-svn: 18961
* Make Win32 TimeValue::toString() re-entrant and work with mingwJeff Cohen2004-12-151-5/+9
| | | | llvm-svn: 18954
* Fix VC++ compilation errorsJeff Cohen2004-12-152-6/+3
| | | | llvm-svn: 18953
* For PR351:Reid Spencer2004-12-153-22/+131
| | | | | | | | | * 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. llvm-svn: 18947
* Add the getMagicNumber method.Reid Spencer2004-12-141-0/+19
| | | | | | Patch contributed by Henrik Bach. Thanks Henrik! llvm-svn: 18933
* Implement Win32 Path::getStatusInfo(), TimeValue::toString()Jeff Cohen2004-12-143-9/+50
| | | | llvm-svn: 18930
* For PR351:Reid Spencer2004-12-142-5/+12
| | | | | | Implement the new environment pointer for ExecuteAndWait llvm-svn: 18928
* For PR351:Reid Spencer2004-12-132-0/+45
| | | | | | | | | | 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. llvm-svn: 18907
* Genericize implementation of GetDLLSuffix now that we have LTDL_SHLIB_EXTReid Spencer2004-12-139-40/+6
| | | | | | available. llvm-svn: 18904
* Fix a bug where "." or any single character file name doesn't get theReid Spencer2004-12-131-1/+1
| | | | | | terminating / when setDirectory is called. llvm-svn: 18886
* Remove an always false clause from an if statement.Reid Spencer2004-12-131-1/+1
| | | | llvm-svn: 18885
* Fix a bug where directory names of length one or less where not setAlkis Evlogimenos2004-12-131-1/+1
| | | | | | properly (examples: "", ".", "a"). llvm-svn: 18883
* * Add a std::ostream inserter for sys::PathReid Spencer2004-12-132-2/+2
| | | | | | * Correct the std::string constructor to take a const reference. llvm-svn: 18877
* Fix recent breakage of win32 buildJeff Cohen2004-12-132-9/+1
| | | | llvm-svn: 18876
* Implement new functions per new interfaceReid Spencer2004-12-131-55/+48
| | | | llvm-svn: 18866
* For PR351: \Reid Spencer2004-12-131-67/+54
| | | | | | | | * Remove IsLibrary and GetLibraryPath, replaced by FindLibrary in ../Path.cpp \ * Implement GetSystemLibraryPaths and GetBytecodeLibraryPaths, instead of the \ GetSystemLibraryPath1 and GetSystemLibraryPath2 methods llvm-svn: 18862
* For PR351: \Reid Spencer2004-12-131-0/+31
| | | | | | | | * Move generic isArchive method here from Unix/Path.cpp \ * Implement isDynamicLibrary \ * Implement FindLibrary for Linker llvm-svn: 18861
* Make the size() method constReid Spencer2004-12-131-1/+1
| | | | llvm-svn: 18852
* Rename Path::get -> Path::toStringReid Spencer2004-12-114-12/+14
| | | | llvm-svn: 18802
* Path::get -> Path::toStringReid Spencer2004-12-114-15/+21
| | | | llvm-svn: 18785
* Fix residual Visual Studio build problemsJeff Cohen2004-12-091-11/+7
| | | | llvm-svn: 18688
* Make this work with the ICC compiler, contributed by Bjørn WennbergChris Lattner2004-12-081-0/+1
| | | | llvm-svn: 18626
* Fix compilation error on Darwin.Chris Lattner2004-12-041-15/+18
| | | | llvm-svn: 18485
* Move darwin-specific majik here.Chris Lattner2004-12-031-5/+27
| | | | llvm-svn: 18466
* Fix seriously broken implementation of GetMagicNumber.Reid Spencer2004-12-021-4/+6
| | | | llvm-svn: 18422
* Implement two new functions: LoadLibraryPermanently andReid Spencer2004-11-291-28/+62
| | | | | | SearchForAddressOfSymbol. llvm-svn: 18355
* We just use ltdl's implementation for this abstraction now. Its portable toReid Spencer2004-11-291-13/+3
| | | | | | more platforms than LLVM supports. llvm-svn: 18352
* Mods for compilation with llvm.Reid Spencer2004-11-291-7/+10
| | | | llvm-svn: 18346
* Original version of ltdl.h from libtool 1.5.10Reid Spencer2004-11-291-0/+366
| | | | llvm-svn: 18345
* Original version of ltdl.c from libtool 1.5.10Reid Spencer2004-11-291-0/+4495
| | | | llvm-svn: 18344
* Implement the default constructor which causes the current program to beReid Spencer2004-11-293-5/+29
| | | | | | opened as if it was a dynamic library so its symbols can be searched too. llvm-svn: 18341
* Cast the void* handle data member to HMODULE* to keep the VC++ compilerReid Spencer2004-11-201-5/+9
| | | | | | happy. Thanks to Henrik Bach for pointing this out. llvm-svn: 18056
* Dynamic Library abstraction. This makes the abstraction of a single dynamicReid Spencer2004-11-1810-0/+361
| | | | | | | library (shared library/shared object) whose symbols can be looked up dynamically. Used for plug-ins. llvm-svn: 17940
* * Use low-level unix I/O interface since we're on Unix.Reid Spencer2004-11-161-7/+17
| | | | | | * Don't use variable length arrays (replaced with alloca) llvm-svn: 17901
OpenPOWER on IntegriCloud