summaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SystemUtils.cpp
AgeCommit message (Collapse)Author
2020-07-08[opt] Remove obsolete --quiet optionArthur Eubanks
git blame shows these were last touched in 2004? Obsoleted in r13844. Reviewed By: hans Differential Revision: https://reviews.llvm.org/D83409
2019-01-19Update the file headers across all of the LLVM projects in the monorepoChandler Carruth
to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
2015-03-23Purge unused includes throughout libSupport.Benjamin Kramer
NFC. llvm-svn: 232976
2013-06-14Move PrependMainExecutablePath next to its only user.Rafael Espindola
llvm-svn: 183980
2013-06-13Avoid using PathV1.h in Program.h.Rafael Espindola
llvm-svn: 183940
2010-11-29Merge System into Support.Michael J. Spencer
llvm-svn: 120298
2010-11-03Rename FindExecutable to PrependMainExecutablePath.Mikhail Glushenkov
Makes it more clear that it is just a path manipulation function. llvm-svn: 118174
2010-11-03Print an error as one big string instead of breaking it up.Dan Gohman
llvm-svn: 118130
2010-11-02Revert r118057, this is better fixed in appendSuffix itself.Mikhail Glushenkov
llvm-svn: 118088
2010-11-02Don't append a dot on platforms which don't use exe suffixes.Dan Gohman
llvm-svn: 118057
2010-11-02FindExecutable: remove the executability check.Mikhail Glushenkov
This makes the behaviour of FindExecutable more consistent across platforms, but I'm not very happy with the name... llvm-svn: 118049
2010-10-28Remove an unnecessary check and an unnecessary temporary.Mikhail Glushenkov
llvm-svn: 117583
2010-09-02Use the FindProgramByName fallback only with known absolute paths.Dan Gohman
I wasn't able to convince myself that all GetMainExecutable implementations always return absolute paths; this prevents unexpected behavior in case they ever don't. llvm-svn: 112888
2010-09-02llvm::FindExecutable(): Retrieve the name with suffix.exe, if available.NAKAMURA Takumi
bugpoint uses it. llvm-svn: 112803
2009-09-11Fix llvm-extract's "writing bitcode to a terminal" warning, which wasn'tDan Gohman
working. To support this, add an is_displayed() function to raw_ostream, and generalize Process::StandardOutIsDisplayed and friends in order to support it. Also, call RemoveFileOnSignal before creating a file instead of after, so that the file isn't left behind if the program is interrupted between when the file is created and RemoveFileOnSignal is called. While here, add a -S to llvm-extract and port it to IRReader so that it supports assembly input. llvm-svn: 81568
2009-08-23Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner
forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. llvm-svn: 79869
2009-08-23eliminate the ostream version of CheckBitcodeOutputToConsole,Chris Lattner
change the raw_ostream one to take the raw_ostream byref instead of byptr. Prune #includes, eliminate a use of Streams.h llvm-svn: 79863
2009-08-05Fix FindExecutable to use sys::Path::GetMainExecutable instead ofDan Gohman
just argv[0]. And remove the code for searching the current working directory and for searching PATH; the point of FindExecutable is not to find whatever version of the executable can be found by searching around, but to find an executable that accompanies the current executable. Update the tools to use sys::Program::FindProgramByName when they want PATH searching. llvm-svn: 78240
2009-07-15Add a raw_ostream version of CheckBitcodeOutputToConsole.Dan Gohman
llvm-svn: 75796
2009-07-12Improve sys::Path::makeAbsolute on Win32.Daniel Dunbar
- Patch by Viktor Kutuzov! - Minor tweak by me to add llvm_unreachable calls on FIXMEd error paths. llvm-svn: 75424
2009-07-01Tweak FindExecutable so that relative executable paths work as well.Daniel Dunbar
llvm-svn: 74645
2009-07-01Fix FindExecutable to work if given an absolute executable path name.Daniel Dunbar
- Patch by Viktor Kutuzov, with tweaks by me. llvm-svn: 74608
2007-12-29Remove attribution from file headers, per discussion on llvmdev.Chris Lattner
llvm-svn: 45418
2007-07-05Here is the bulk of the sanitizing.Gabor Greif
Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
2006-12-07Don't use <sstream> in Streams.h but <iosfwd> instead.Bill Wendling
llvm-svn: 32340
2006-12-07Removed more <iostream> includesBill Wendling
llvm-svn: 32321
2006-12-07Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling
now cerr, cout, and NullStream resp. llvm-svn: 32298
2006-11-26Removed #include <iostream> and replace with llvm_* streams.Bill Wendling
llvm-svn: 31927
2005-07-07For PR495:Reid Spencer
Get rid of the difference between file paths and directory paths. The Path class now simply stores a path that can refer to either a file or a directory. This required various changes in the implementation and interface of the class with the corresponding impact to its users. Doxygen comments were also updated to reflect these changes. Interface changes are: appendDirectory -> appendComponent appendFile -> appendComponent elideDirectory -> eraseComponent elideFile -> eraseComponent elideSuffix -> eraseSuffix renameFile -> rename setDirectory -> set setFile -> set Changes pass Dejagnu and llvm-test/SingleSource tests. llvm-svn: 22349
2005-07-07For PR495:Reid Spencer
Change interface to Path class: readable -> canRead writable -> canWrite executable -> canExecute More (incremental) changes coming to close 495. llvm-svn: 22345
2005-05-10Why output multiple strings, let the compiler concatenate them for us for freeMisha Brukman
llvm-svn: 21845
2005-04-22* Order #includes as per style guideMisha Brukman
* Combine multiple ``std::cerr <<'' statements into one for simplicity llvm-svn: 21458
2005-04-21Remove trailing whitespaceMisha Brukman
llvm-svn: 21422
2005-01-02Make printing a warning message optional in CheckBytecodeOutputToConsole.Reid Spencer
llvm-svn: 19240
2005-01-01Implement a function to print a warning if bytecode output is to be sent toReid Spencer
a terminal/console. llvm-svn: 19237
2004-12-19For PR351:Reid Spencer
* 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
2004-12-14For PR351:Reid Spencer
* Remove the ExecWait function. This is now in sys::Program::ExecuteAndWait llvm-svn: 18927
2004-12-13For PR351:Reid Spencer
* Remove isExecutable as its now implemented by sys::Path::executable * Make FindExecutable a thin veneer over sys::Program::FindProgramByName. llvm-svn: 18918
2004-12-13For PR351:Reid Spencer
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
2004-09-01Changes For Bug 352Reid Spencer
Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
2004-07-25Remove linux/solaris specific stuff.Chris Lattner
llvm-svn: 15195
2004-07-24Get rid of the printout from the low-level system interfaceChris Lattner
llvm-svn: 15161
2004-07-24Add support for killing the program if it executes for too long.Chris Lattner
llvm-svn: 15158
2004-06-18* Fix file header and nameMisha Brukman
* Order #includes alphabetically llvm-svn: 14234
2004-06-18Use the machine-independent method of querying the page size.Misha Brukman
llvm-svn: 14233
2004-06-02Fix spelling, trim empty space, tighten up function header comment.Misha Brukman
llvm-svn: 13940
2004-05-28Add support for getting executable memory on Windows. This is actuallyChris Lattner
much easier than on unix. :) The only evil thing is that windows.h defines a macro named FindExecutable, which collides with one of our names. The JIT now runs on windows, but it cannot resolve external functions (like printf) yet. llvm-svn: 13871
2004-05-28Add a new function for the JIT. libsupport is now the only library thatChris Lattner
includes mman.h llvm-svn: 13870
2004-05-27Changes to make libSupport build on systems that don't have the wait syscall.Chris Lattner
llvm-svn: 13806
2004-04-16Bugpoint was not correctly capturing stderr! This caused it to "find" bugsChris Lattner
that didn't exist, missing the ones that do :( llvm-svn: 12978