| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
instead of as two bools. Use this to add a F_Append flag
which has the obvious behavior.
Other unrelated changes conflated into this patch:
1. REmove EH stuff from llvm-dis and llvm-as, the try blocks
are dead.
2. Simplify the filename inference code in llvm-as/llvm-dis,
because raw_fd_ostream does the right thing with '-'.
3. Switch machine verifier to use raw_ostream instead of ostream
(Which is the thing that needed append in the first place).
llvm-svn: 79807
|
|
|
|
| |
llvm-svn: 76070
|
|
|
|
|
|
|
|
| |
tools to using the default global context for now.
This will let us to hardwire stuff to the global context in the short term while the API is sorted out.
llvm-svn: 75846
|
|
|
|
|
|
|
|
| |
an existing file is considered an error. Convert several tools
to use raw_fd_ostream instead of std::ostream, and to use this
new option instead of doing a manual check.
llvm-svn: 75801
|
|
|
|
| |
llvm-svn: 74734
|
|
|
|
| |
llvm-svn: 74640
|
|
|
|
|
|
|
|
|
|
| |
LLVMContext through a lot
of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools.
Patches for Clang and LLVM-GCC to follow.
llvm-svn: 74614
|
|
|
|
|
|
|
| |
their main routines. This makes the tools print their argc/argv
commands if they crash.
llvm-svn: 66248
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and clean recursive descent parser.
This change has a couple of ramifications:
1. The parser code is about 400 lines shorter (in what we maintain, not
including what is autogenerated).
2. The code should be significantly faster than the old code because we
don't have to work around bison's poor handling of datatypes with
ctors/dtors. This also makes the code much more resistant to memory
leaks.
3. We now get caret diagnostics from the .ll parser, woo.
4. The actual diagnostics emited from the parser are completely different
so a bunch of testcases had to be updated.
5. I now disallow "%ty = type opaque %ty = type i32". There was no good
reason to support this, it was just an accident of the old
implementation. I have no reason to think that anyone is actually using
this.
6. The syntax for sticking a global variable has changed to make it
unambiguous. I don't think anyone is depending on this since only clang
supports this and it is not solid yet, so I'm not worried about anything
breaking.
7. This gets rid of the last use of bison, and along with it the .cvs files.
I'll prune this from the makefiles as a subsequent commit.
There are a few minor cleanups that can be done after this commit (suggestions
welcome!) but this passes dejagnu testing and is ready for its time in the
limelight.
llvm-svn: 61558
|
|
|
|
| |
llvm-svn: 47422
|
|
|
|
| |
llvm-svn: 45421
|
|
|
|
|
|
| |
commands and into the common code.
llvm-svn: 42752
|
|
|
|
|
|
| |
Almost all occurrences of "bytecode" in the sources have been eliminated.
llvm-svn: 37913
|
|
|
|
| |
llvm-svn: 36868
|
|
|
|
|
|
| |
bitcode file instead of a bytecode file
llvm-svn: 36333
|
|
|
|
| |
llvm-svn: 33420
|
|
|
|
|
|
| |
now cerr, cout, and NullStream resp.
llvm-svn: 32298
|
|
|
|
|
|
| |
With this change, I can now move -stats to print when llvm_shutdown is called.
llvm-svn: 32250
|
|
|
|
|
|
|
| |
adding a temporary wrapper around the ostream to make it friendly to
functions expecting an LLVM stream. This should be fixed in the future.
llvm-svn: 31990
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rid the Assembly Parser of exceptions. This is a really gross hack but it
will do until the Assembly Parser is re-written as a recursive descent.
The basic premise is that wherever the old "ThrowException" function was
called (new name: GenerateError) we set a flag (TriggerError). Every
production checks that flag and calls YYERROR if it is set. Additionally,
each call to ThrowException in the grammar is replaced with GEN_ERROR
which calls GenerateError and then YYERROR immediately. This prevents
the remaining production from continuing after an error condition.
llvm-svn: 29763
|
|
|
|
|
|
| |
canoptionally return the string error, which is an easier api for clients touse anyway.
llvm-svn: 29017
|
|
|
|
| |
llvm-svn: 28544
|
|
|
|
| |
llvm-svn: 21428
|
|
|
|
| |
llvm-svn: 20156
|
|
|
|
| |
llvm-svn: 19751
|
|
|
|
|
|
| |
This prevents bytecode splats with usage like: cat file.ll | llvm-as -
llvm-svn: 19239
|
|
|
|
| |
llvm-svn: 19232
|
|
|
|
|
|
|
|
|
|
| |
* Place a try/catch block around the entire tool to Make sure std::string
exceptions are caught and printed before exiting the tool.
* Make sure we catch unhandled exceptions at the top level so that we don't
abort with a useless message but indicate than an unhandled exception was
generated.
llvm-svn: 19192
|
|
|
|
| |
llvm-svn: 17798
|
|
|
|
| |
llvm-svn: 17567
|
|
|
|
|
|
| |
Change --compress to --no-compress so compression can be turned off.
llvm-svn: 17564
|
|
|
|
| |
llvm-svn: 17535
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 16091
|
|
|
|
|
|
| |
error messages because verification stops at the first error.
llvm-svn: 14794
|
|
|
|
|
|
| |
error. Just print the message like a good little tool.
llvm-svn: 14793
|
|
|
|
| |
llvm-svn: 14766
|
|
|
|
| |
llvm-svn: 14623
|
|
|
|
|
|
|
| |
but allows us to generate valid code on hosts (like windows) that do newline
translation for text files.
llvm-svn: 14418
|
|
|
|
| |
llvm-svn: 13813
|
|
|
|
|
|
| |
tool.
llvm-svn: 11632
|
|
|
|
| |
llvm-svn: 9903
|
|
|
|
| |
llvm-svn: 9292
|
|
|
|
| |
llvm-svn: 9291
|
|
|
|
| |
llvm-svn: 9026
|
|
|
|
| |
llvm-svn: 8188
|
|
|
|
| |
llvm-svn: 7960
|
|
|
|
| |
llvm-svn: 6485
|
|
|
|
| |
llvm-svn: 6292
|
|
|
|
| |
llvm-svn: 3552
|