summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32
Commit message (Collapse)AuthorAgeFilesLines
...
* Add llvm::sys::getHostTriple and removeDaniel Dunbar2009-03-311-17/+3
| | | | | | | | | | | llvm::sys::getOS{Name,Version}. Right now the implementation just derives from LLVM_HOSTTRIPLE (which is wrong, but it doesn't look like we have a define for the target triple). Ideally this routine would actually be able to compute the triple for targets we care about. llvm-svn: 68118
* Fix the Win32 VS2008 build:Sebastian Redl2009-03-192-11/+13
| | | | | | | | | | - Make type declarations match the struct/class keyword of the definition. - Move AddSignalHandler into the namespace where it belongs. - Correctly call functions from template base. - Some other small changes. With this patch, LLVM and Clang should build properly and with far less noise under VS2008. llvm-svn: 67347
* add some explicit llvm:: qualifiers to the unix side, fix problems on the ↵Chris Lattner2009-03-081-2/+2
| | | | | | windows side. llvm-svn: 66386
* Add a new 'AddSignalHandler' function to Signals.h that allowsChris Lattner2009-03-041-41/+15
| | | | | | | | | | | | | arbitrary functions to be run when a crash happens. Delete RemoveDirectoryOnSignal as it is dead and has never had clients. Change PrintStackTraceOnErrorSignal to be implemented in terms of AddSignalHandler. I updated the Win32 versions of these APIs, but can't test them. If there are any problems, I'd be happy to fix them as well. llvm-svn: 66072
* Unbreak the build on win32.Cedric Venet2009-02-141-1/+1
| | | | | | | | | | Cleanup some warning. Remark: when struct/class are declared differently than they are defined, this make problem for VC++ since it seems to mangle class differently that struct. These error are very hard to understand and find. So please, try to keep your definition/declaration in sync. Only tested with VS2008. hope it does not break anything. feel free to revert. llvm-svn: 64554
* Fix MingW build, patch by Kenneth Boyd!Julien Lerouge2009-02-121-1/+4
| | | | llvm-svn: 64366
* Add a Sleep() function.Mikhail Glushenkov2009-02-081-0/+4
| | | | llvm-svn: 64101
* Add Emacs hints to Alarm.inc.Mikhail Glushenkov2009-02-081-2/+2
| | | | | | Also removes some trailing whitespace and fixes one 80-column violation. llvm-svn: 64094
* Fix windows build, patch by Marius Wachtler!Chris Lattner2009-01-291-2/+2
| | | | llvm-svn: 63325
* rename methods in System/Host to be more consistent.Chris Lattner2009-01-221-2/+2
| | | | llvm-svn: 62776
* 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
OpenPOWER on IntegriCloud