summaryrefslogtreecommitdiffstats
path: root/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
* Add debugtype, make output marginally more niceChris Lattner2003-10-191-3/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9251 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR #47Chris Lattner2003-10-191-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9250 91177308-0d34-0410-b5e6-96231b3b80d8
* Without this option, the -run-llc mode does not work with shared objects atChris Lattner2003-10-181-0/+1
| | | | | | | | all, making it pointless for use with the code generator debugger. With it, it works like a charm. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9245 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix up error message.Brian Gaeke2003-10-151-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9139 91177308-0d34-0410-b5e6-96231b3b80d8
* Generalize abstract interpreter interface to allow linking in an arbitrary ↵Chris Lattner2003-10-141-18/+23
| | | | | | number of shared objects git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9129 91177308-0d34-0410-b5e6-96231b3b80d8
* Substantial cleanups:Chris Lattner2003-10-141-28/+35
| | | | | | | | | | | | | | * Add header comment * Remove extraneous #includes * Move the FileType enum into the GCC class * The GCC class is not virtual. * Move all of the "constructor" functions into the classes themselves * Stop using cl::list as arguments, use std::vector instead (which cl::list derives from) * Improve comments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9121 91177308-0d34-0410-b5e6-96231b3b80d8
* Actually return an error if something bad happens, don't just exit.Chris Lattner2003-10-141-5/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9119 91177308-0d34-0410-b5e6-96231b3b80d8
* LLI no longer has -abort-on-exceptionChris Lattner2003-10-131-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9097 91177308-0d34-0410-b5e6-96231b3b80d8
* Regularize header file commentsChris Lattner2003-10-131-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9071 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't include Config/stdio.h or <stdio.h>.Brian Gaeke2003-10-101-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9031 91177308-0d34-0410-b5e6-96231b3b80d8
* Change to use LinkDynamicObject instead of dlopen.Brian Gaeke2003-10-101-3/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9011 91177308-0d34-0410-b5e6-96231b3b80d8
* Change to use strtoul instead of strtoll.Brian Gaeke2003-10-101-2/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9010 91177308-0d34-0410-b5e6-96231b3b80d8
* Add my abstracted dynamic linker support files.Brian Gaeke2003-10-101-0/+42
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9008 91177308-0d34-0410-b5e6-96231b3b80d8
* ToolRunner.h has been moved from include/Support to include/llvm/Support.Misha Brukman2003-10-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8898 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the NamedRegionTimer classChris Lattner2003-10-061-0/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8889 91177308-0d34-0410-b5e6-96231b3b80d8
* Move support/lib/Support back to lib/SupportChris Lattner2003-10-051-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8874 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed space issues, code alignment, tabs -> spaces.Misha Brukman2003-09-291-11/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8755 91177308-0d34-0410-b5e6-96231b3b80d8
* Implementation of the abstraction of running our tools + gcc, taken out ofMisha Brukman2003-09-291-0/+374
| | | | | | | bugpoint for general usage and enjoyment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8754 91177308-0d34-0410-b5e6-96231b3b80d8
* Moved code from llvm/lib/Support to llvm/support/lib/Support.John Criswell2003-09-291-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8735 91177308-0d34-0410-b5e6-96231b3b80d8
* In ExecWait(), made the child process exit if it can't execve() the newJohn Criswell2003-09-171-13/+23
| | | | | | | | | program. Added the use of const (which compiles and is hopefully correct). Added comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8585 91177308-0d34-0410-b5e6-96231b3b80d8
* Added the ExecWait() function. It executes a program with the specifiedJohn Criswell2003-09-171-0/+98
| | | | | | | | | | arguments and environment. Perhaps it should be merged with the RunProgramWithTimeout function, but I'd want to allow it to inherit the parent process's stdin and stdout. I'll save that for a rainy day... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8577 91177308-0d34-0410-b5e6-96231b3b80d8
* Add missing apostrophe. It's been bugging me for years.Brian Gaeke2003-09-161-1/+1
| | | | | | | No really, years. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8566 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed spelling & grammar.Misha Brukman2003-09-164-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8559 91177308-0d34-0410-b5e6-96231b3b80d8
* Added the MakeFileReadable() method.John Criswell2003-09-021-0/+54
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8327 91177308-0d34-0410-b5e6-96231b3b80d8
* Added a description of the algorithm.John Criswell2003-09-021-7/+14
| | | | | | | Return failure if the chmod() fails. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8326 91177308-0d34-0410-b5e6-96231b3b80d8
* Added the MakeFileExecutable() method. This method takes a filename andJohn Criswell2003-09-021-0/+50
| | | | | | | gives it execute access while respecting the user's umask. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8324 91177308-0d34-0410-b5e6-96231b3b80d8
* Mangle ALL letters that we do not allow, not just a few.Chris Lattner2003-08-241-14/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8140 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of ValueHolder helperChris Lattner2003-08-231-0/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8072 91177308-0d34-0410-b5e6-96231b3b80d8
* lib/Support/CommandLine.cpp:Brian Gaeke2003-08-151-46/+51
| | | | | | | | | | | | | | | | | | Many changes suggested by Chris. It's okay, I'll recover from the emotional damage...maybe someday. :-) Collapse ParseCStringVector into ParseStringVector. Comment it. Make it take a const input. Use std::string::npos instead of -1 (what a mouthful!) Make ParseEnvironmentOptions take const inputs. Check its args at the very beginning. Strdup all the contents of newArgv and free them all at the end. include/Support/CommandLine.h: Constify progName and envVar arguments to ParseEnvironmentOptions(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7905 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for reading command line arguments from an environment variable.Brian Gaeke2003-08-141-0/+74
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7851 91177308-0d34-0410-b5e6-96231b3b80d8
* This file uses stable_sortChris Lattner2003-08-131-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7831 91177308-0d34-0410-b5e6-96231b3b80d8
* Reenable optimized buildChris Lattner2003-08-121-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7788 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support to the mangler for targets which require _'s on global symbolsChris Lattner2003-08-111-3/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7741 91177308-0d34-0410-b5e6-96231b3b80d8
* close() requires "unistd.h" .Misha Brukman2003-08-071-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7695 91177308-0d34-0410-b5e6-96231b3b80d8
* Doxygen-ify the comments by using '///' instead of '//'.Misha Brukman2003-08-071-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7694 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove references to `bugpoint' from the now-generic system utilities.Misha Brukman2003-08-071-7/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7693 91177308-0d34-0410-b5e6-96231b3b80d8
* Moved removeFile() and getUniqueFilename() into FileUtilities.Misha Brukman2003-08-072-36/+36
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7691 91177308-0d34-0410-b5e6-96231b3b80d8
* Move debug functionality to Debug.cpp/Debug.hChris Lattner2003-08-012-12/+54
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7494 91177308-0d34-0410-b5e6-96231b3b80d8
* Describe the value nameChris Lattner2003-08-011-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7493 91177308-0d34-0410-b5e6-96231b3b80d8
* Check in the implementation of the FileUtilities!Chris Lattner2003-08-011-0/+56
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7487 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the C++, more portable, deleterChris Lattner2003-08-011-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7483 91177308-0d34-0410-b5e6-96231b3b80d8
* Move #include from a header to hereChris Lattner2003-08-011-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7480 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the JIT in the Nightly tester. This was not a fun bug to track down.Chris Lattner2003-07-311-2/+14
| | | | | | | See the comments in the patch for details. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7457 91177308-0d34-0410-b5e6-96231b3b80d8
* Trivial cleanups: no need to include header twice. Global variable is local ↵Chris Lattner2003-07-311-3/+1
| | | | | | to file git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7456 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for "named positional arguments"Chris Lattner2003-07-301-15/+34
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7421 91177308-0d34-0410-b5e6-96231b3b80d8
* The RTLD_GLOBAL flag allows symbols to be globally accessible, which makesMisha Brukman2003-07-281-1/+1
| | | | | | | | resolution of symbols in the .so possible (currently assists debugging with bugpoint). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7366 91177308-0d34-0410-b5e6-96231b3b80d8
* Include llvm/Support/Mangler.h first. Don't include <iostream>, <set>,Brian Gaeke2003-07-251-5/+1
| | | | | | | <string>, or llvm/Value.h. Move up the inclusion of llvm/Support/Mangler.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7321 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanups:Brian Gaeke2003-07-241-4/+5
| | | | | | | | | | Mangler.cpp: Constify parameter to makeNameProper, and use const_iterator. Make Count an unsigned int, and use utostr(). Don't name parameters things that start with underscore. Mangler.h: All of the above, and also: Add Emacs mode-line. Include <set>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7301 91177308-0d34-0410-b5e6-96231b3b80d8
* Factor out name-mangling from X86/Printer, which is derived from CWriter,Brian Gaeke2003-07-241-0/+83
| | | | | | | into this new support class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7300 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify code by using ConstantInt::getRawValue instead of checking to seeChris Lattner2003-07-231-4/+1
| | | | | | | whether the constant is signed or unsigned, then casting git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7252 91177308-0d34-0410-b5e6-96231b3b80d8