summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
* Remove Path::canWrite.Rafael Espindola2013-06-182-13/+0
| | | | llvm-svn: 184235
* Add a can_write function to PathV2.Rafael Espindola2013-06-182-0/+18
| | | | llvm-svn: 184233
* Remove unused Path::canRead.Rafael Espindola2013-06-182-12/+0
| | | | llvm-svn: 184229
* Remove uniqueID from PathV1.h.Rafael Espindola2013-06-182-8/+0
| | | | llvm-svn: 184219
* Add a GetUniqueID that will replace the uniqueID of PathV1.h.Rafael Espindola2013-06-182-0/+26
| | | | llvm-svn: 184217
* Add a version of unique_file that return just the file name.Rafael Espindola2013-06-181-1/+12
| | | | llvm-svn: 184206
* Basic support for parsing Mach-O universal binaries in LLVMObject libraryAlexey Samsonov2013-06-181-2/+1
| | | | llvm-svn: 184191
* Reapply r183985 now that the missing check was added to PathV2.Rafael Espindola2013-06-171-3/+5
| | | | llvm-svn: 184120
* Only delete regular files and directories.Rafael Espindola2013-06-171-0/+16
| | | | | | | | This ports a missing feature from PathV1.h. I am not sure how to test this with the regular infrastructure, but an Apple bot should check this when r183985 is reapplied. llvm-svn: 184119
* Revert "Remove a use of PathV1.h."Rafael Espindola2013-06-171-5/+3
| | | | | | | | This reverts commit r183985. We were missing the checks for not deleting things like /dev/null. llvm-svn: 184111
* Don't use PathV1.h in LTOCodeGenerator.cppRafael Espindola2013-06-171-0/+4
| | | | | | | This patch also adds a simpler version of sys::fs::remove and a tool_output_file constructor for when we already have an open file. llvm-svn: 184095
* Fix incorrectly finding 'executable' directories instead of files.Manuel Klimek2013-06-171-1/+8
| | | | | | | | | | | | | | | This broke for example the 'not' utility, if a directory called 'FileCheck' is executable and in the path before the actual 'FileCheck'. This patch steals the implementation of the "old" PathV1 canExecute implementation: - checks for R_OK (file readable): this is necessary for executing scripts; we should not regress here unless we have good reasons - checks for S_ISREG; if we want to get rid of this, we'd need to change all callers who already made the assumption when depending on Path V1. llvm-svn: 184074
* Add GetCurrentDirectory back.Rafael Espindola2013-06-142-0/+21
| | | | | | | | It looks like clang-tools-extra/unittests/cpp11-migrate/TransformTest.cpp depends on the behaviour of the old one on Windows. Maybe a difference between GetCurrentDirectoryA and GetCurrentDirectoryW? llvm-svn: 184009
* Replace use of PathV1.h in MCContext.cpp.Rafael Espindola2013-06-142-21/+0
| | | | | | GetCurrentDirectory is now unused. Remove it. llvm-svn: 184003
* Replace use of PathV1.h in Program.cpp.Rafael Espindola2013-06-145-75/+63
| | | | llvm-svn: 183996
* Remove unused argument.Rafael Espindola2013-06-141-3/+3
| | | | llvm-svn: 183992
* Don't use PathV1.h in GraphWriter.cpp.Rafael Espindola2013-06-141-5/+2
| | | | llvm-svn: 183988
* Convert a use of sys::Path::GetTemporaryDirectory.Rafael Espindola2013-06-141-10/+9
| | | | llvm-svn: 183987
* Remove a use of PathV1.h.Rafael Espindola2013-06-141-3/+5
| | | | llvm-svn: 183985
* Remove a use of PathV1.h.Rafael Espindola2013-06-141-15/+9
| | | | llvm-svn: 183982
* Move PrependMainExecutablePath next to its only user.Rafael Espindola2013-06-141-23/+0
| | | | llvm-svn: 183980
* Remove a use of sys::Path.Rafael Espindola2013-06-141-2/+3
| | | | llvm-svn: 183979
* Try to fix the windows build.Rafael Espindola2013-06-131-1/+1
| | | | llvm-svn: 183950
* Don't use PathV1.h in Signals.h.Rafael Espindola2013-06-133-12/+15
| | | | llvm-svn: 183947
* Don't use PathV1.h in FileUtilities.h.Rafael Espindola2013-06-131-2/+6
| | | | llvm-svn: 183941
* Avoid using PathV1.h in Program.h.Rafael Espindola2013-06-133-22/+29
| | | | llvm-svn: 183940
* Add a version of sys::ExecuteAndWait that takes StringRefs.Rafael Espindola2013-06-131-0/+23
| | | | llvm-svn: 183934
* Have sys::FindProgramByName return a std::string.Rafael Espindola2013-06-132-15/+15
| | | | llvm-svn: 183928
* Covert remaining graph viewers from sys::Path to std::string.Rafael Espindola2013-06-131-3/+3
| | | | llvm-svn: 183921
* Update code for other graph viewing programs too.Rafael Espindola2013-06-131-3/+3
| | | | llvm-svn: 183920
* Reduce usage of sys::Path in the graph writer.Rafael Espindola2013-06-131-22/+40
| | | | | | Now PathV1.h is not needed in GraphWriter.h. llvm-svn: 183919
* [Support] Fix handle and memory leak for processes that are not waited forReid Kleckner2013-06-133-40/+27
| | | | | | | | | | | | Execute's Data parameter is now optional, so we won't allocate memory for it on Windows and we'll close the process handle. The Unix code should probably do something similar to avoid accumulation of zombie children that haven't been waited on. Tested on Linux and Windows. llvm-svn: 183906
* Zero-initializing variables; fixes a build breakage introduced in r183864.Aaron Ballman2013-06-131-2/+2
| | | | llvm-svn: 183904
* [Win] Put ChangeStdinToBinary ChangeStdoutToBinary ChangeStderrToBinary in sys.Rafael Espindola2013-06-121-3/+3
| | | | llvm-svn: 183868
* s/Void/void.Rafael Espindola2013-06-121-1/+1
| | | | llvm-svn: 183866
* Attempt at fixing the windows build.Rafael Espindola2013-06-121-34/+35
| | | | llvm-svn: 183865
* Remove the program class.Rafael Espindola2013-06-126-46/+40
| | | | | | | It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just those two functions and make Execute and Wait implementations details. llvm-svn: 183864
* Don't use PathV1 in CommandLine.cpp.Rafael Espindola2013-06-121-22/+10
| | | | | | No functionality change. llvm-svn: 183842
* Inline Path::isBitcodeFile into only use and remove it.Rafael Espindola2013-06-121-8/+0
| | | | llvm-svn: 183840
* Remove Path::getMagicNumber.Rafael Espindola2013-06-122-39/+0
| | | | llvm-svn: 183839
* Remove Path::hasMagicNumber.Rafael Espindola2013-06-121-7/+0
| | | | llvm-svn: 183838
* Remove Path::isAbsolute.Rafael Espindola2013-06-122-26/+0
| | | | llvm-svn: 183836
* Remove Path::isAbsolute().Rafael Espindola2013-06-122-22/+0
| | | | llvm-svn: 183835
* Remove Path::getSuffix.Rafael Espindola2013-06-122-33/+0
| | | | llvm-svn: 183833
* Remove sys::CopyFile.Rafael Espindola2013-06-122-58/+0
| | | | llvm-svn: 183831
* Fix 'gcc -flto' builds for unittest binaries (undefined reference toPatrik Hagglund2013-06-121-1/+0
| | | | | | | | | `typeinfo for llvm::cl::GenericOptionValue'). Remove an "anchor" method for an abstract class. (This does not increase the number of vtables.) llvm-svn: 183830
* Remove the old file memory mapping functions.Rafael Espindola2013-06-123-30/+1
| | | | llvm-svn: 183828
* Remove Path::createFileOnDisk.Rafael Espindola2013-06-122-22/+0
| | | | llvm-svn: 183827
* Remove Path::makeExecutableOnDisk.Rafael Espindola2013-06-122-11/+0
| | | | llvm-svn: 183826
* Move PathV2.h to Path.hRafael Espindola2013-06-111-1/+1
| | | | | | | Most clients have already been moved from Path V1 to V2. The ones using V1 now include PathV1.h explicitly. llvm-svn: 183801
OpenPOWER on IntegriCloud