summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32
Commit message (Collapse)AuthorAgeFilesLines
* Silence a warningAnton Korobeynikov2008-11-021-4/+6
| | | | llvm-svn: 58563
* Update the stub and callback code to handle lazy compilation. The stubJim Grosbach2008-10-201-2/+9
| | | | | | | | | | is re-written by the callback to branch directly to the compiled code in future invocations. Added back in range-based memory permission functions for the updating of the stub on Darwin. llvm-svn: 57846
* Add implementations for sys::Memory::setWritable and ↵Argyrios Kyrtzidis2008-10-041-0/+8
| | | | | | sys::Memory::setExecutable on Win32 platform. llvm-svn: 57047
* Add llvm::sys::{osName,osVersion} for retrieving operating system nameDaniel Dunbar2008-10-021-0/+35
| | | | | | | & version as strings. - Win32 code is untested. llvm-svn: 56942
* add a helper method to sys::Path for clang, patch byChris Lattner2008-08-111-0/+7
| | | | | | Kovarththanan Rajaratnam! llvm-svn: 54655
* Minor comment fix.Argyrios Kyrtzidis2008-06-161-1/+1
| | | | llvm-svn: 52312
* Fix the sys::Path::getSuffix() implementation.Argyrios Kyrtzidis2008-06-151-0/+16
| | | | llvm-svn: 52288
* Fix the environment block that is passed to the CreateProcess function.Argyrios Kyrtzidis2008-06-151-1/+28
| | | | | | This bug made llvm-ld unable to function with "-native" option, since the process that was used to call 'gcc' was crashing. llvm-svn: 52284
* Fix redirection of stderr in sys::Program::ExecuteAndWait. There was logicMatthijs Kooijman2008-06-121-5/+8
| | | | | | | | | | | | | error that caused it to redirect stderr to stdout too often. This fix is applied identically to the win32 code as well, but that is untested. --Thi line, and those below, will be ignored-- M System/Unix/Program.inc M System/Win32/Program.inc llvm-svn: 52233
* Make I/O redirection handling in sys::Program a bit more consistent. NoMatthijs Kooijman2008-06-121-3/+5
| | | | | | | | | | | | | functional changes. Win32 code is untested, but should work fine. In the unix variant, rename RedirectFD to RedirectIO and let that function handle empty and null paths instead of doing that in the caller 3 times. This is the same as win32 already does it. In the win32 variant, use Path::isEmpty() instead of checking the resulting c_str() manually. This is the same as unix already does it. llvm-svn: 52230
* Provide hooks for libgcc symbols' address resolution inside lli on mingw32.Anton Korobeynikov2008-06-061-0/+30
| | | | | | Patch by Julien Lerouge! llvm-svn: 52037
* Make constructors target-specific. This fixes problems where the path wouldNick Lewycky2008-05-111-1/+11
| | | | | | include backslashes on Windows. This should fix llvm-ld problems on win32. llvm-svn: 50960
* Fix renamePathOnDisk on Win32, patch from David Leon. This fixes problems withNick Lewycky2008-05-061-1/+1
| | | | | | llvm-ar being unable to rename files. llvm-svn: 50702
* Make getDirnameSep a static method (not part of Path's interface).Ted Kremenek2008-04-071-1/+3
| | | | llvm-svn: 49354
* Added method Path::getDirname().Ted Kremenek2008-04-071-0/+2
| | | | llvm-svn: 49352
* MappedFile is dead, remove it.Chris Lattner2008-04-011-104/+0
| | | | llvm-svn: 49035
* Stub out some sys::Path::MapInFilePages/UnMapFilePages methods.Chris Lattner2008-04-011-0/+10
| | | | llvm-svn: 49030
* Make MappedFile::map return a const correct pointer, don't leak address ↵Chris Lattner2008-04-011-1/+1
| | | | | | space on Unix platforms. llvm-svn: 49026
* Remove MappedFile support for mapping files for write and execChris Lattner2008-04-011-42/+6
| | | | | | | and shared. This complicates the design, is not used, and probably doesn't even work. llvm-svn: 49022
* cleanup the MappedFile API and comments. This removes and updatesChris Lattner2008-04-011-52/+52
| | | | | | | | tons of out of date comments (really nothing throws here!) and fixes some other fairly glaring issues: "size" used to return the size of the file *and* change it, depending on how you called it. llvm-svn: 49009
* Revert r48676. I had plans for using it, but now it's just dead code.Owen Anderson2008-03-241-23/+0
| | | | llvm-svn: 48743
* Add an AllocateRW to match AllocateRWX.Owen Anderson2008-03-221-0/+23
| | | | llvm-svn: 48676
* this was removed from the Unix side.Chris Lattner2008-03-141-5/+0
| | | | llvm-svn: 48370
* remove extraneous namespace qualifier, PR2142Chris Lattner2008-03-131-2/+1
| | | | llvm-svn: 48327
* Stub out a Path::GetMainExecutable call to find the path to theChris Lattner2008-03-031-0/+6
| | | | | | main executable of a program. This needs to be implemented on windows. llvm-svn: 47835
* Add path separator support, patch by Sam Bishop. Chris Lattner2008-02-271-19/+2
| | | | llvm-svn: 47662
* Provide __main hooks for cygwin & mingw32Anton Korobeynikov2008-02-221-17/+27
| | | | llvm-svn: 47479
* Use empty() instead of comparing size() with zero.Dan Gohman2008-01-291-1/+1
| | | | llvm-svn: 46514
* Fix potential buffer overflowAnton Korobeynikov2008-01-241-1/+1
| | | | llvm-svn: 46296
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-2911-22/+22
| | | | llvm-svn: 45418
* Unbreak mingw buildAnton Korobeynikov2007-12-221-1/+2
| | | | llvm-svn: 45314
* Added "GetCurrentDirectory()" to sys::Path.Ted Kremenek2007-12-181-0/+9
| | | | llvm-svn: 45182
* Added "isDirectory" method to llvm::sys::Path.Ted Kremenek2007-12-181-0/+7
| | | | llvm-svn: 45168
* This change does a couple of things. First it gets the Visual Studio builds ↵Chuck Rose III2007-11-212-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | working. I added the lexing files to the VStudio projects and removed the .l files from the VStudio projects. There was a problem with use of strtoll in TGLexer.cpp and Chris suggested switching to strtol, so that's included here. Additionally, this checkin adds minimal x64 builds to the VStudio builds. Build issues related to x64 in the windows specific files for DynamicLibrary.inc and Singals.inc are worked around, but not ultimately solved. Binaries used to be stored in ...\win32\{Debug|Release} but are now kept in ...\win32\bin\{win32|x64}\{Debug|Release} intermediate files will continue to be stored in the individual project directories under win32. Some names will likely change in the future to reflect that the vstudio projects are no longer 32-bit only, but I wanted to get things up and running today so kept away from bigger restructuring. llvm-svn: 44260
* finishing touches of bytecode -> bitcode changes. also unbreak WindowsGabor Greif2007-07-061-1/+1
| | | | llvm-svn: 37950
* Provide hook for alloca on VCPP. Patch by Scott GrahamAnton Korobeynikov2007-06-251-4/+18
| | | | llvm-svn: 37715
* pull some win32 code into common code, add bitcode identification support.Chris Lattner2007-05-061-15/+0
| | | | llvm-svn: 36846
* Unbreak VC++ build.Jeff Cohen2007-04-072-32/+32
| | | | llvm-svn: 35751
* For PR1291:Reid Spencer2007-04-071-16/+14
| | | | | | Implement the PathWithStatus class and its use throughout lib/System. llvm-svn: 35742
* For PR789:Reid Spencer2007-03-292-16/+18
| | | | | | | | Make the sys::Path::getFileStatus function more efficient by having it return a pointer to the FileStatus structure rather than copy it. Adjust uses of the function accordingly. Also, fix some memory issues in sys::Path. llvm-svn: 35476
* Determine absolute paths the correct way :)Jeff Cohen2007-03-291-3/+9
| | | | llvm-svn: 35464
* Add a uniqueID field to the FileStatus structure for Paths. This will mapReid Spencer2007-03-291-0/+7
| | | | | | | to the inode number on Unix and something far less unique on Windows. The windows case needs to be improved. llvm-svn: 35461
* For PR789:Reid Spencer2007-03-291-14/+27
| | | | | | | | | * Add a method: bool isAbsolute() const, which determines if the path name is absolute or not. * Implement caching of file status information in the Path object. Allow it to be updated forcefully or lazily re-fetched from the cached value. llvm-svn: 35456
* Fix mingw32 buildAnton Korobeynikov2007-03-191-0/+1
| | | | llvm-svn: 35177
* Unbreak mingw32 buildAnton Korobeynikov2007-03-091-0/+8
| | | | llvm-svn: 35042
* Ensure 64-bit correctness.Jeff Cohen2007-03-051-1/+1
| | | | llvm-svn: 34923
* Implement memoryLimit on Windows.Jeff Cohen2007-03-052-6/+52
| | | | llvm-svn: 34922
* Add possibility to set memory limit for binaries run via libSystem. ThisAnton Korobeynikov2007-02-161-0/+1
| | | | | | is especially needed for bugpoint. This partly implements PR688 llvm-svn: 34349
* Partly fixed JITing on mingw32 platform. The support is not full due toAnton Korobeynikov2006-12-191-0/+25
| | | | | | absence of dllimport JIT codegen. llvm-svn: 32673
* Unbreak VC++ build.Jeff Cohen2006-11-051-0/+5
| | | | llvm-svn: 31464
OpenPOWER on IntegriCloud