aboutsummaryrefslogtreecommitdiffstats
path: root/include/Support
Commit message (Collapse)AuthorAgeFilesLines
* Fix spelloChris Lattner2003-09-101-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8432 91177308-0d34-0410-b5e6-96231b3b80d8
* Added the MakeFileReadable() method.John Criswell2003-09-021-0/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8327 91177308-0d34-0410-b5e6-96231b3b80d8
* Added the MakeFileExecutable() method. This method takes a filename andJohn Criswell2003-09-021-0/+15
| | | | | | | 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
* Rename TarjanSCCIterator -> scc_iteratorChris Lattner2003-08-311-19/+18
| | | | | | | | | * Increases consistency with other iterators (e.g. df_iterator, po_iterator...) * It's shorter * We don't name classes by the implementation, we name it for the interface! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8273 91177308-0d34-0410-b5e6-96231b3b80d8
* ELIMINATE the SCC class completely. One less thing deriving from std::vectorChris Lattner2003-08-311-25/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8272 91177308-0d34-0410-b5e6-96231b3b80d8
* Move the HasLoop method from the SCC class to the iterator classChris Lattner2003-08-311-12/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8268 91177308-0d34-0410-b5e6-96231b3b80d8
* * CleanupsChris Lattner2003-08-311-21/+14
| | | | | | | | * operator* now returns a reference to the current SCC, instead of a possibly null pointer git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8261 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove usage of unsigned long: unsigned should be enough!Chris Lattner2003-08-311-23/+23
| | | | | | | Remove explicit use of a stack<>, use a vector instead git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8246 91177308-0d34-0410-b5e6-96231b3b80d8
* This file uses cerr without including <iostream>. Since it's just for ↵Chris Lattner2003-08-311-5/+5
| | | | | | debugging, comment it out git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8245 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix compilation problems with G++ 3.4Chris Lattner2003-08-291-17/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8212 91177308-0d34-0410-b5e6-96231b3b80d8
* Spell `incompatible' correctly.Misha Brukman2003-08-271-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8163 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes to work better with GCC3.4/LLVM G++Chris Lattner2003-08-221-3/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8054 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unused fileChris Lattner2003-08-211-26/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8021 91177308-0d34-0410-b5e6-96231b3b80d8
* Make assertion message more helpful in a case that might happen...Chris Lattner2003-08-191-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7975 91177308-0d34-0410-b5e6-96231b3b80d8
* Spell `necessary' correctly.Misha Brukman2003-08-182-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7944 91177308-0d34-0410-b5e6-96231b3b80d8
* lib/Support/CommandLine.cpp:Brian Gaeke2003-08-151-1/+1
| | | | | | | | | | | | | | | | | | 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
* hash_map and hash_set:Misha Brukman2003-08-152-5/+13
| | | | | | | | | * Define HASH_NAMESPACE to `std' in the case of pre-3.0 GCC compilers * Add comments to clarify the intent of all the #ifdef madness * Add VIM directive to highlight files as C++ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7903 91177308-0d34-0410-b5e6-96231b3b80d8
* Reordered includes to be consistent with the LLVM style.Misha Brukman2003-08-151-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7887 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove extraneous cl:: namespace qualifiersChris Lattner2003-08-141-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7852 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for reading command line arguments from an environment variable.Brian Gaeke2003-08-141-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7851 91177308-0d34-0410-b5e6-96231b3b80d8
* If we can't find INT64_MAX, set it to a reasonable default value,Brian Gaeke2003-08-111-1/+9
| | | | | | | instead of printing out an (incorrect) #error message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7744 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove references to `bugpoint' from the now-generic system utilities.Misha Brukman2003-08-071-5/+6
| | | | 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-10/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7691 91177308-0d34-0410-b5e6-96231b3b80d8
* Move debugging support out of Statistic.h into Debug.h, implement the new ↵Chris Lattner2003-08-012-21/+53
| | | | | | DEBUG_TYPE facilities git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7490 91177308-0d34-0410-b5e6-96231b3b80d8
* Including statistics into an anonymous namespace that gets #included intoChris Lattner2003-08-011-10/+1
| | | | | | | every file is a bad idea. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7489 91177308-0d34-0410-b5e6-96231b3b80d8
* New fileChris Lattner2003-08-011-0/+29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7482 91177308-0d34-0410-b5e6-96231b3b80d8
* This file doesn't need this includeChris Lattner2003-08-011-5/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7479 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable JIT when the platform supports it.John Criswell2003-07-291-4/+27
| | | | | | | | | Select /localhome/$USER when it exists. Fix the checks for bidirectional and forward iterators so that they work with version of GCC prior to 3.x. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7383 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix another accessibility problem illuminated by GCC 3.3Chris Lattner2003-07-251-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7314 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix visibility problem exposed by GCC 3.3Chris Lattner2003-07-251-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7313 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the C++ <cassert> header, not the C <assert.h> headerChris Lattner2003-07-251-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7310 91177308-0d34-0410-b5e6-96231b3b80d8
* Add includes of assertChris Lattner2003-07-252-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7307 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix accessibility problems GCC 3.3Chris Lattner2003-07-251-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7306 91177308-0d34-0410-b5e6-96231b3b80d8
* Add assert.h includeChris Lattner2003-07-251-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7305 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert to C++ style commentsChris Lattner2003-07-252-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7304 91177308-0d34-0410-b5e6-96231b3b80d8
* Include vector into these two files to ensure that specializations likeVikram S. Adve2003-07-252-0/+8
| | | | | | | | | | stl_bvector.h are correctly included into *anything* that includes hash_map or hash_set. ext/hash_map includes stl_vector.h directly and leaves out the specializations, causing truly nasty bugs due to inconsistent versions of vector<> being used for vector<bool> in different files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7303 91177308-0d34-0410-b5e6-96231b3b80d8
* The word `separate' only has one `e'.Misha Brukman2003-07-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7173 91177308-0d34-0410-b5e6-96231b3b80d8
* Lowercase versions of `occurrence' need to be spelled correctly, too.Misha Brukman2003-07-101-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7142 91177308-0d34-0410-b5e6-96231b3b80d8
* `Occurrence' has no `a' and the `r' is doubled.Misha Brukman2003-07-101-22/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7140 91177308-0d34-0410-b5e6-96231b3b80d8
* Merged in autoconf branch. This provides configuration via the autoconfJohn Criswell2003-06-3015-106/+51
| | | | | | | system. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7014 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for 'unsigned' command line argumentsChris Lattner2003-06-281-0/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6928 91177308-0d34-0410-b5e6-96231b3b80d8
* Get rid of WORDSIZE macro which can pollute untold numbers of translation unitsChris Lattner2003-06-221-18/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6843 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove a ton of extraneous #includesChris Lattner2003-06-224-8/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6842 91177308-0d34-0410-b5e6-96231b3b80d8
* Regularize the names of #include-guards.Brian Gaeke2003-06-1723-48/+48
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6732 91177308-0d34-0410-b5e6-96231b3b80d8
* Isolate machine-dependent use of <alloca.h> in "Support/Alloca.h",Brian Gaeke2003-06-161-0/+30
| | | | | | | | so that we can easily change its use to be conditional on the result of an autoconf test later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6723 91177308-0d34-0410-b5e6-96231b3b80d8
* Whoops. I didn't mean to step on John's changes.Brian Gaeke2003-06-161-7/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6722 91177308-0d34-0410-b5e6-96231b3b80d8
* This version supports FreeBSD.Brian Gaeke2003-06-161-25/+25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6721 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed the LITTLE_ENDIAN and BIG_ENDIAN macros to ENDIAN_LITTLE and ENDIAN_BIG.John Criswell2003-06-111-7/+22
| | | | | | | | | This will prevent them from conflicting with macros defined by the system header files. When autoconf comes, this will look a lot nicer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6684 91177308-0d34-0410-b5e6-96231b3b80d8
* Included assert.h so that the code compiles under newer versions of GCC.John Criswell2003-06-116-0/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6682 91177308-0d34-0410-b5e6-96231b3b80d8
* Made changes suggested by Chris; Renamed 'union' function to unionSetsWithSumant Kowshik2003-06-041-11/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6605 91177308-0d34-0410-b5e6-96231b3b80d8