summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
* Use size_t instead of long to represent memory usage. long is 32 bitsJeff Cohen2005-01-081-5/+5
| | | | | | on 64-bit Windows. llvm-svn: 19393
* Do not throw away bits for no reasonChris Lattner2005-01-081-1/+1
| | | | llvm-svn: 19378
* Silence a VS warning.Chris Lattner2005-01-081-1/+1
| | | | llvm-svn: 19377
* Make printing a warning message optional in CheckBytecodeOutputToConsole.Reid Spencer2005-01-021-5/+8
| | | | llvm-svn: 19240
* Implement a function to print a warning if bytecode output is to be sent toReid Spencer2005-01-011-8/+10
| | | | | | a terminal/console. llvm-svn: 19237
* Fix a bug that made the nightly tester *really* slow. During changes forReid Spencer2004-12-271-3/+9
| | | | | | | | | | portability, the --track-space option was inadvertently ignored. This patch fixes that so that sys::Process::GetMallocUsage() is only invoked if the --track-spaces option is given. Apparently the mallinfo() call that GetMallocUsage() uses is *very* slow, especially when processing very large modules like projects/llvm-test/MultiSource/Applications/kimwitu++. llvm-svn: 19163
* For PR351:Reid Spencer2004-12-221-14/+0
| | | | | | Move non-portable FDHandle class to its only user: lib/Debugger llvm-svn: 19106
* Fix a bug where system time always equals user timeReid Spencer2004-12-201-5/+12
| | | | llvm-svn: 19075
* Put some header files back that Win32 needs.Reid Spencer2004-12-201-0/+2
| | | | llvm-svn: 19058
* For PR351:Reid Spencer2004-12-201-59/+13
| | | | | | | | * Move system dependent implementation out of this file. * Make implementation use sys::Process::GetMallocUsage where necessary. * Make implementation use sys::Process::GetTimeUsage where necessary. llvm-svn: 19053
* For PR351:Reid Spencer2004-12-191-24/+27
| | | | | | | | | | * Pass sys::Path instead of std::string for paths * Correct the types of arguments passed to RunProgramWithTimeout due to its interface using sys::Path instead of std::string * Replace "/dev/null" (not portable) with empty string which sys::Program::ExecuteAndWait recognizes as "redirect to bit bucket" llvm-svn: 19041
* For PR351:Reid Spencer2004-12-191-115/+5
| | | | | | | | | * Remove unneeded header files. * Move RedirectFD static function to lib/System/Unix/Program.cpp * Delete RunProgramWithTimeout, now implemented by sys::Program::ExecuteAndWait. RunProgramWithTimeout is now a convenience func. llvm-svn: 19040
* For PR351:Reid Spencer2004-12-161-15/+14
| | | | | | | | | * Make the OutputC and OutputAsm functions work with sys::Path for the output file name instead of using std::string. * Get rid of extraneous "toString" calls. * Change "removeFile" to sys::Path::destroyFile() llvm-svn: 19000
* For PR351:Reid Spencer2004-12-161-7/+0
| | | | | | | | * Remove the "removeFile" function, now implemented by the sys::Path::destroyFile method. * Make the FileRemove work with a sys::Path instead of a std::string llvm-svn: 18999
* For PR351:Reid Spencer2004-12-151-8/+17
| | | | | | | * Remove #inclusion of FileUtilities.h, not needed any more. * Convert getUniqueFilename -> sys::Pat::makeUnique() llvm-svn: 18948
* For PR351:Reid Spencer2004-12-151-88/+1
| | | | | | | Remove getUniqueFilename and CopyFile. These are now implemented by sys::Path::makeUnique and sys::CopyFile, respectively. llvm-svn: 18946
* For PR351:Reid Spencer2004-12-141-78/+3
| | | | | | * Remove the ExecWait function. This is now in sys::Program::ExecuteAndWait llvm-svn: 18927
* Revert the last patch as it causes a static destruction ordering problem.Reid Spencer2004-12-141-3/+5
| | | | llvm-svn: 18925
* For PR351:Reid Spencer2004-12-131-5/+5
| | | | | | | Adjust to changes in the interface of FindExecutable, getting ToolRunner ready for bigger things to come. llvm-svn: 18919
* For PR351:Reid Spencer2004-12-131-64/+13
| | | | | | | * Remove isExecutable as its now implemented by sys::Path::executable * Make FindExecutable a thin veneer over sys::Program::FindProgramByName. llvm-svn: 18918
* For PR351:Reid Spencer2004-12-131-61/+0
| | | | | | | Remove AllocateRWXMemory as it is not used any more in LLVM. The function has been replaced with sys::Memory::AllocateRWX several months ago. llvm-svn: 18912
* For PR351:Reid Spencer2004-12-131-39/+0
| | | | | | | | Remove the MakeFileReadable and MakeFileExecutable functions which are no longer present in LLVM. They have been replaced with the sys::Path methods makeReadable and makeExecutable, respectively. llvm-svn: 18910
* For PR351:Reid Spencer2004-12-131-46/+0
| | | | | | | | The ReadFileIntoAddressSpace and UnmapFileFromAddressSpace functions are no longer used by LLVM. Remove them. Replacement functionality for both functions is now encapsulated in the sys::MappedFile class. llvm-svn: 18903
* For PR351: \Reid Spencer2004-12-131-21/+3
| | | | | | | | The getFileTimestamp and getFileSize functions have been removed from \ FileUtilities.{h,cpp}. They are replaced by Path::getTimestamp and \ Path::getSize,respectively. llvm-svn: 18892
* Get rid of some leaks found by VC leak detector.Reid Spencer2004-12-131-5/+3
| | | | | | Patch contributed by Morten Ofsted. llvm-svn: 18889
* For PR351:Remove the file type checking methods (now in sys::Path)Reid Spencer2004-12-131-54/+0
| | | | llvm-svn: 18846
* Distribute headers and license files tooReid Spencer2004-12-041-3/+5
| | | | llvm-svn: 18505
* Up the compression threshold to 64K so we avoid it for all but the largestReid Spencer2004-11-301-1/+1
| | | | | | bytecode files. This should help linking substantially. llvm-svn: 18378
* Functionality moved to portable lib/System/DynamicLibrary.cppReid Spencer2004-11-291-96/+0
| | | | | | implementation llvm-svn: 18358
* Use System/DynamicLibrary instead of Support/DynamicLinker to implement.Reid Spencer2004-11-291-2/+12
| | | | llvm-svn: 18356
* Shared library extension is now in LTDL_SHLIB_EXTReid Spencer2004-11-291-1/+1
| | | | llvm-svn: 18353
* Add bzip2 subdirectoryReid Spencer2004-11-251-0/+1
| | | | llvm-svn: 18251
* Remove zlib support in favor of our own bzip2 libraryReid Spencer2004-11-251-177/+77
| | | | llvm-svn: 18250
* Revise to LLVM makefile standards.Reid Spencer2004-11-251-192/+16
| | | | llvm-svn: 18246
* Initial Version from bzip2 Release 1.0.2.Reid Spencer2004-11-2515-0/+6297
| | | | llvm-svn: 18245
* Implement and document prefix options with arbitrary values including anReid Spencer2004-11-241-1/+1
| | | | | | | = sign. This needed to support -DNAME=value options as pass-through in llvmc. llvm-svn: 18203
* Fixed assertion from triggering. We need to check if the commandline map is ↵Tanya Lattner2004-11-201-0/+2
| | | | | | empty before checking if an arg exists. llvm-svn: 18057
* Patches to avoid "leaking" memory on process exit. Patch contributed byChris Lattner2004-11-191-39/+25
| | | | | | Morten Ofstad! llvm-svn: 17998
* Allow this to compile even on machines that HAVE the bzlib library but doReid Spencer2004-11-191-5/+11
| | | | | | NOT have the bzlib.h header file. Go figure. llvm-svn: 17989
* Undo last change as its unnecessary.Reid Spencer2004-11-191-1/+1
| | | | llvm-svn: 17985
* Make a cast explicit.Reid Spencer2004-11-191-1/+1
| | | | llvm-svn: 17977
* Add a comment to some code that at first glance just doesn't look right.Reid Spencer2004-11-161-0/+6
| | | | llvm-svn: 17886
* Per code review:Reid Spencer2004-11-161-5/+24
| | | | | | *Implement/Document the cl::extrahelp feature instead of the MoreHelp ptr. llvm-svn: 17871
* Implement the high level interface to make (de)compression easier.Reid Spencer2004-11-141-9/+181
| | | | llvm-svn: 17775
* Implement the MoreHelp utility that calls a function to printmore help ↵Reid Spencer2004-11-141-0/+10
| | | | | | information if the MoreHelp global is not null. llvm-svn: 17774
* Tune compression:Reid Spencer2004-11-091-2/+2
| | | | | | | | | | bzip2: block size 9 -> 5, reduces memory by 400Kbytes, doesn't affect speed or compression ratio on all but the largest bytecode files (>1MB) zip: level 9 -> 6, this speeds up compression time by ~30% but only degrades the compressed size by a few bytes per megabyte. Those few bytes aren't worth the effort. llvm-svn: 17647
* * Convert tabs to spacesMisha Brukman2004-11-091-10/+6
| | | | | | | * Order #includes according to style guide * Remove extraneous blank lines llvm-svn: 17639
* Allow hbd to be bugpointable on darwin by fixing common and linkonce codegenNate Begeman2004-11-091-1/+0
| | | | llvm-svn: 17637
* Handle headers for compressed bytecode filesMisha Brukman2004-11-081-1/+1
| | | | llvm-svn: 17634
* Replace uses of llvm.org with llvm.cs.uiuc.eduMisha Brukman2004-11-071-1/+1
| | | | llvm-svn: 17549
OpenPOWER on IntegriCloud