summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
* Add a helper functionChris Lattner2006-11-281-0/+15
| | | | llvm-svn: 31981
* Removed #include <iostream> and replace with llvm_* streams.Bill Wendling2006-11-266-56/+57
| | | | llvm-svn: 31927
* Make the absolute/relative tolerance information easier to read/understand.Reid Spencer2006-11-251-2/+3
| | | | llvm-svn: 31908
* Moved definition of llvm_ostream wrappers to the Streams.cpp file.Bill Wendling2006-11-171-4/+3
| | | | llvm-svn: 31819
* Added wrappers for the std::cerr/std::cout objects. The wrappers willBill Wendling2006-11-171-0/+21
| | | | | | soon replace all uses of those objects. llvm-svn: 31817
* Added "DOUT" macro. This is used as a replacement for the std::cerrBill Wendling2006-11-171-0/+12
| | | | | | | | | | | | stream. It centralizes the use of std::cerr so that static c'tor/d'tors aren't scattered around all over the place. The way to use it is like this: DOUT << "This is a status line: " << Var << "\n"; If "-debug" is specified, it will print. Otherwise, it'll not print. If NDEBUG is defined, the DOUT does nothing. llvm-svn: 31798
* Remove redundant <cmath>.Jim Laskey2006-11-081-1/+0
| | | | llvm-svn: 31561
* Include llvm/Support/DataTypes.h to define intptr_t.John Criswell2006-11-081-0/+1
| | | | | | This fixes the build on OpenBSD and potentially other systems. llvm-svn: 31550
* assert.h -> cassertRafael Espindola2006-11-031-1/+1
| | | | llvm-svn: 31399
* #include <assert.h>Rafael Espindola2006-11-021-0/+1
| | | | llvm-svn: 31386
* Allow FoldingSet clients to pump up the initial hash size.Jim Laskey2006-11-021-2/+4
| | | | llvm-svn: 31377
* add a highly efficient hash table that is specialized for mapping C stringsChris Lattner2006-10-291-0/+134
| | | | | | to some other type. llvm-svn: 31286
* Add a new llvm::Allocator abstraction, which will be used by a containerChris Lattner2006-10-291-0/+106
| | | | | | | I'm about to add. This is similar to, but necessarily different than, the STL allocator class. llvm-svn: 31285
* Try again.Jim Laskey2006-10-291-1/+4
| | | | llvm-svn: 31278
* Not handling zero length strings.Jim Laskey2006-10-291-2/+2
| | | | llvm-svn: 31277
* SmallVector append not insert.Jim Laskey2006-10-271-5/+1
| | | | llvm-svn: 31224
* Grrr.Jim Laskey2006-10-271-1/+1
| | | | llvm-svn: 31223
* Temp patch for missing functionality.Jim Laskey2006-10-271-0/+4
| | | | llvm-svn: 31222
* MathExtras isn't in the llvm/ADT directory but in the llvm/Support directory.Bill Wendling2006-10-271-1/+1
| | | | llvm-svn: 31219
* Apply editorials.Jim Laskey2006-10-271-43/+55
| | | | llvm-svn: 31218
* Breakout folding hash set from SelectionDAGCSEMap.Jim Laskey2006-10-271-0/+282
| | | | llvm-svn: 31215
* Beef up the output from DiffFilesWithTolerance by setting the error codeReid Spencer2006-10-181-3/+16
| | | | | | | to describe the difference being reported. This assists with understanding differences an llvm-test and should help with bugpoint too. llvm-svn: 31044
* avoid a ctor/dtor issue with the ProgramName global.Chris Lattner2006-10-131-3/+9
| | | | llvm-svn: 30925
* shrink anon-ns and mark stuff static. No functionality changesChris Lattner2006-10-121-10/+11
| | | | llvm-svn: 30922
* Fix a static dtor issueChris Lattner2006-10-041-5/+6
| | | | llvm-svn: 30726
* Fix more static dtor issuesChris Lattner2006-10-042-73/+62
| | | | llvm-svn: 30725
* Define this in the correct n/sChris Lattner2006-09-291-1/+1
| | | | llvm-svn: 30671
* new helper class to provide more explicit management of static ctor/dtors.Chris Lattner2006-09-281-0/+53
| | | | llvm-svn: 30638
* Instantiate Statistic<> in one place, not in every .o file that uses it.Chris Lattner2006-08-301-0/+2
| | | | llvm-svn: 29971
* Minor code cleanupsChris Lattner2006-08-271-11/+10
| | | | llvm-svn: 29917
* Add external definitions for commonly-used template specializations and addChris Lattner2006-08-271-7/+28
| | | | | | | | anchor methods to others. This eliminates the vtable/template method bloat in .o files that defining a cl::opt used to impose (~4K per .o file for one cp::opt<unsigned>). llvm-svn: 29909
* Remove a character to avoid line exceeding 80 cols.Reid Spencer2006-08-241-1/+1
| | | | llvm-svn: 29860
* For PR797:Reid Spencer2006-08-231-1/+0
| | | | | | | This library no longer throws nor handles exceptions, so turn off the REQUIRES_EH flag. llvm-svn: 29849
* For PR797:Reid Spencer2006-08-231-83/+75
| | | | | | | Final remove of exception handling from this file. lib/System can no longer throw exceptions so there's no need for try/catch blocks here. llvm-svn: 29848
* Make the ProgramName variable a std::string so we can eliminate the pathReid Spencer2006-08-231-26/+14
| | | | | | | | | | | | | | portion fo the program name via sys::Path().getLast(). This makes error messages more readable since this is invariably used only in error messages. Instead of: /path/to/llvm/bin/directory/toolname: error message we will now get: toolname: error message Also, since we always have a program name (even if its defaulted), don't check to see if it is set or not when generating error messages. This eliminates a bunch of constant strings, saving a little under 1K of data. llvm-svn: 29842
* For PR797:Reid Spencer2006-08-221-6/+14
| | | | | | | | | | Adjust users of MappedFile to its new non-throwing interface. Note that in most cases the lazy step of just throwing after a call to MappedFile was installed. This was done in the name of incremental changes. Getting rid of the new throw statements will take adjustment of interfaces and propagation of errors to higher levels. Those changes will come in subsequent patches. llvm-svn: 29817
* Adding new Dwarf constants.Jim Laskey2006-08-211-0/+1
| | | | llvm-svn: 29798
* For PR797:Reid Spencer2006-08-211-8/+10
| | | | | | | | Adjust usage of the ExecuteAndWait function to use the last argument which is the ErrMsg string. This is necessitated because this function no longer throws exceptions on error. llvm-svn: 29791
* For PR797:Reid Spencer2006-08-212-2/+4
| | | | | | | | Make sys::Program::ExecuteAndWait not throw exceptions and update any affected code. It now return -9999 to signal that the program couldn't be executed. Only one case (in bugpoint) actually examines the result code. llvm-svn: 29785
* remove IncludeFile turds in MathExtras.h, which bloats every .o file thatChris Lattner2006-08-112-13/+9
| | | | | | #includes it. llvm-svn: 29639
* Remove the use of "IncludeFile" from this support facility. The mechanismReid Spencer2006-08-071-3/+0
| | | | | | | to build a loadable module is now correctly defined and documented so this workaround isn't needed any longer. llvm-svn: 29553
* If the Program name was NULL then all further output sent to std::cerr wasJim Laskey2006-08-021-1/+3
| | | | | | suppressed. llvm-svn: 29477
* Finegrainify namespacification, minor cleanupsChris Lattner2006-07-281-8/+2
| | | | llvm-svn: 29399
* Change Path::getStatusInfo to return a boolean and error string on an errorChris Lattner2006-07-281-12/+16
| | | | | | | | instead of throwing an exception. This reduces the amount of code that is exposed to exceptions (e.g. FileUtilities), though it is clearly only one step along the way. llvm-svn: 29395
* libsupport still throws.Chris Lattner2006-07-281-0/+1
| | | | llvm-svn: 29394
* For PR780:Reid Spencer2006-07-265-20/+13
| | | | | | | | | | | | 1. Move IncludeFile.h to System library 2. Move IncludeFile.cpp to System library 3. #1 and #2 required to prevent cyclic library dependencies for libSystem 4. Convert all existing uses of Support/IncludeFile.h to System/IncludeFile.h 5. Add IncludeFile support to various lib/System classes. 6. Add new lib/System classes to LinkAllVMCore.h All this in an attempt to pull in lib/System to what's required for VMCore llvm-svn: 29287
* Add an out-of-line virtual method to provide a home for the cl::option class.Chris Lattner2006-07-181-0/+4
| | | | llvm-svn: 29191
* Add two helpers for escaping and unescaping strings.Chris Lattner2006-07-141-0/+50
| | | | llvm-svn: 29151
* LoadLibraryPermanently no longer throws an exception, so this code doesn't haveChris Lattner2006-07-071-28/+14
| | | | | | to catch it. Other minor cleanups. llvm-svn: 29050
* This patch (written by Reid) changes compressor to never throw an exception.Chris Lattner2006-07-071-38/+107
| | | | llvm-svn: 29045
OpenPOWER on IntegriCloud