aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix VC++ compilation errorJeff Cohen2004-12-211-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19082 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-211-10/+7
| | | | | | | | Remove unix specific code (use of errno and read) from the reader. Thanks to Jeff Cohen for pointing this out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19081 91177308-0d34-0410-b5e6-96231b3b80d8
* Visual Studio project Configure should place the configured header filesJeff Cohen2004-12-211-10/+12
| | | | | | | in the win32 subtree instead of the src subtree. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19080 91177308-0d34-0410-b5e6-96231b3b80d8
* Put the CopyFile function explicitly in the sys namespace.Reid Spencer2004-12-212-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19079 91177308-0d34-0410-b5e6-96231b3b80d8
* Use explicit construction of sys::Path from std::string because theReid Spencer2004-12-211-1/+1
| | | | | | | constructor is "explicit". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19078 91177308-0d34-0410-b5e6-96231b3b80d8
* Include <cassert> for Cygwin.Reid Spencer2004-12-211-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19077 91177308-0d34-0410-b5e6-96231b3b80d8
* Cygwin doesn't like .. through a link, so drop the ..Reid Spencer2004-12-209-9/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19076 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug where system time always equals user timeReid Spencer2004-12-201-5/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19075 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement GetTimeUsage correctly.Reid Spencer2004-12-202-8/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19074 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow compilers that can't distinguish between a class instantiation andReid Spencer2004-12-201-1/+2
| | | | | | | the declaration of a function to compile this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19073 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide a getrusage based implementation of GetTotalMemoryUsage and useReid Spencer2004-12-202-0/+8
| | | | | | | the ru_maxrss field as an approximation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19072 91177308-0d34-0410-b5e6-96231b3b80d8
* Consistently use the same #if style. Also, fix a bug testing for sbrk(3)Reid Spencer2004-12-202-8/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19071 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unnecessary #includes.Reid Spencer2004-12-201-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19070 91177308-0d34-0410-b5e6-96231b3b80d8
* Be double sure about including sys/stat.h by wrapping the inclusion inReid Spencer2004-12-201-0/+3
| | | | | | | an "#if defined(HAVE_SYS_STAT_H)". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19069 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm/Config/unistd.h has gone away, far, far awayMisha Brukman2004-12-201-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19068 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the #include of llvm/Config/unistd.h as it is no longer needed.Reid Spencer2004-12-201-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19067 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove this file as there are no LLVM users of it any more.Reid Spencer2004-12-201-28/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19066 91177308-0d34-0410-b5e6-96231b3b80d8
* Incorporate the contents of include/llvm/Config/unistd.h as this is theReid Spencer2004-12-201-1/+11
| | | | | | | | last file in LLVM to require the header. After ths commmit, our unistd.h will go away. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19065 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove this file as its not used by anything in LLVM any more. SystemReid Spencer2004-12-201-23/+0
| | | | | | | dependent behavior is now made through the lib/System interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19064 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove these files as they are included by nothing in LLVM any more. TheReid Spencer2004-12-205-117/+0
| | | | | | | system dependent functionality has been moved to lib/System. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19063 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove these headers. The files that used to #include them don't any moreReid Spencer2004-12-203-107/+0
| | | | | | | as most system dependent behavior has been moved to lib/System. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19062 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove un-needed #includes.Reid Spencer2004-12-201-3/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19061 91177308-0d34-0410-b5e6-96231b3b80d8
* Add HAVE_SYSCONFReid Spencer2004-12-201-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19060 91177308-0d34-0410-b5e6-96231b3b80d8
* Use Config/alloca.h instead of alloca.h - pointed out by Duraid and MishaBrian Gaeke2004-12-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19059 91177308-0d34-0410-b5e6-96231b3b80d8
* Put some header files back that Win32 needs.Reid Spencer2004-12-201-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19058 91177308-0d34-0410-b5e6-96231b3b80d8
* Keep up with lib/System changesJeff Cohen2004-12-204-62/+94
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19057 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix problems uncovered by VC++ (first time compiled by VC++)Jeff Cohen2004-12-205-5/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19056 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-204-12/+242
| | | | | | | | | * 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19055 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-201-1/+1
| | | | | | | No need for Unix/SUS/Process.cpp any more, just ifdef it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19054 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19053 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-202-4/+108
| | | | | | | | * Add checks for sbrk and getpagesize functions * Alphebetize the checks for functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19052 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-201-0/+31
| | | | | | | | | * Add GetMallocUsage as a wrapper around mallinfo() * Add GetTotalMemoryUsage to get approximate RSS size * Add GetTimeUsage to get elapsed/system/user time git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19051 91177308-0d34-0410-b5e6-96231b3b80d8
* Wrap long linesReid Spencer2004-12-201-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19050 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-206-168/+0
| | | | | | | | This file is no longer needed as system dependent functions have been encapsulated into lib/System. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19049 91177308-0d34-0410-b5e6-96231b3b80d8
* * Use "" for LLVM include files, not <>Misha Brukman2004-12-202-10/+6
| | | | | | | | * llvm/Config/alloca.h already #includes config.h * Minor readability/stylistic changes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19048 91177308-0d34-0410-b5e6-96231b3b80d8
* Make this compile on Solaris.Brian Gaeke2004-12-191-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19047 91177308-0d34-0410-b5e6-96231b3b80d8
* Use <> for system #include filesMisha Brukman2004-12-191-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19046 91177308-0d34-0410-b5e6-96231b3b80d8
* Make references to 'struct sigaction' compile under Solaris.Brian Gaeke2004-12-192-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19045 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-194-39/+48
| | | | | | | * Support changes in sys::Program::ExecuteAndWait interface git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19044 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-192-44/+198
| | | | | | | | Move the functionality of RunProgramWithTimeout into the ExecuteAndWait function: support a timeout and I/O redirects git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19043 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-191-0/+1
| | | | | | | Add a needed include. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19042 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-192-48/+54
| | | | | | | | | | | * 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" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19041 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19040 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-191-4/+15
| | | | | | | | | Incorporate the abilities of RunPRogramWithTimeout into sys::Program::ExecuteAndWait so that redirection and a timeout are optionally supported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19039 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-192-8/+8
| | | | | | | Turn path instance variables into sys::Path instead of std::string git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19038 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-191-20/+21
| | | | | | | | Replace RunProgramWithTimeout with an inline function that calls sys::Program::ExecuteAndWait. This is now just a convenience function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19037 91177308-0d34-0410-b5e6-96231b3b80d8
* Add llc project to Visual StudioJeff Cohen2004-12-192-3/+155
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19036 91177308-0d34-0410-b5e6-96231b3b80d8
* Add lli project to Visual StudioJeff Cohen2004-12-194-2/+199
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19035 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable browse information in Visual StudioJeff Cohen2004-12-1911-0/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19034 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve dependency management for lib/system/win32/* files. Instead of ↵Jeff Cohen2004-12-181-2/+22
| | | | | | | | | | | | | copying the files from win32/* to platform/*, create one line files in platform that include the corresponding file in win32. This makes life much more enjoyable! The cruel irony is that NTFS has hard links just like Unix, but there's no way to get to them from the DOS prompt! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19033 91177308-0d34-0410-b5e6-96231b3b80d8