|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| | llvm-svn: 32963 | 
| | 
| 
| 
| | llvm-svn: 32962 | 
| | 
| 
| 
| 
| 
| | one should.
llvm-svn: 32845 | 
| | 
| 
| 
| 
| 
| | static constructor for them :).   Transition complete.
llvm-svn: 32710 | 
| | 
| 
| 
| 
| 
| 
| 
| | (STATISTIC), which allows us to define statistics that don't introduce
static ctors into the .o files.  I'm migrating code over to use this
incrementally.
llvm-svn: 32687 | 
| | 
| 
| 
| 
| 
| 
| | rework the hacks that had us passing OStream in. We pass in std::ostream*
instead, check for null, and then dispatch to the correct print() method.
llvm-svn: 32636 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | Instead, the stat info is printed when llvm_shutdown() is called.
These also don't need static ctors, but getting rid of them is uglier:
still investigating.  This reduces the number of static dtors in llvm from
~1400 to ~750.
llvm-svn: 32372 | 
| | 
| 
| 
| | llvm-svn: 32340 | 
| | 
| 
| 
| | llvm-svn: 32321 | 
| | 
| 
| 
| 
| 
| | now cerr, cout, and NullStream resp.
llvm-svn: 32298 | 
| | 
| 
| 
| 
| 
| | and eliminating #includes from the Statistic.h file.
llvm-svn: 32282 | 
| | 
| 
| 
| 
| 
| | is 'unsigned'.
llvm-svn: 32279 | 
| | 
| 
| 
| | llvm-svn: 31981 | 
| | 
| 
| 
| | llvm-svn: 31927 | 
| | 
| 
| 
| | llvm-svn: 31908 | 
| | 
| 
| 
| | llvm-svn: 31819 | 
| | 
| 
| 
| 
| 
| | soon replace all uses of those objects.
llvm-svn: 31817 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| | llvm-svn: 31561 | 
| | 
| 
| 
| 
| 
| | This fixes the build on OpenBSD and potentially other systems.
llvm-svn: 31550 | 
| | 
| 
| 
| | llvm-svn: 31399 | 
| | 
| 
| 
| | llvm-svn: 31386 | 
| | 
| 
| 
| | llvm-svn: 31377 | 
| | 
| 
| 
| 
| 
| | to some other type.
llvm-svn: 31286 | 
| | 
| 
| 
| 
| 
| 
| | I'm about to add.  This is similar to, but necessarily different than, the
STL allocator class.
llvm-svn: 31285 | 
| | 
| 
| 
| | llvm-svn: 31278 | 
| | 
| 
| 
| | llvm-svn: 31277 | 
| | 
| 
| 
| | llvm-svn: 31224 | 
| | 
| 
| 
| | llvm-svn: 31223 | 
| | 
| 
| 
| | llvm-svn: 31222 | 
| | 
| 
| 
| | llvm-svn: 31219 | 
| | 
| 
| 
| | llvm-svn: 31218 | 
| | 
| 
| 
| | llvm-svn: 31215 | 
| | 
| 
| 
| 
| 
| 
| | to describe the difference being reported. This assists with understanding
differences an llvm-test and should help with bugpoint too.
llvm-svn: 31044 | 
| | 
| 
| 
| | llvm-svn: 30925 | 
| | 
| 
| 
| | llvm-svn: 30922 | 
| | 
| 
| 
| | llvm-svn: 30726 | 
| | 
| 
| 
| | llvm-svn: 30725 | 
| | 
| 
| 
| | llvm-svn: 30671 | 
| | 
| 
| 
| | llvm-svn: 30638 | 
| | 
| 
| 
| | llvm-svn: 29971 | 
| | 
| 
| 
| | llvm-svn: 29917 | 
| | 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| | llvm-svn: 29860 | 
| | 
| 
| 
| 
| 
| 
| | This library no longer throws nor handles exceptions, so turn off the
REQUIRES_EH flag.
llvm-svn: 29849 | 
| | 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| | llvm-svn: 29798 | 
| | 
| 
| 
| 
| 
| 
| 
| | 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 |