History log of /llvm-project/llvm/tools/llvm-as/llvm-as.cpp (Results 76 – 100 of 143)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 61a8796d 25-Aug-2009 Dan Gohman <gohman@apple.com>

Make LLVM command-line tools overwrite their output files without -f.
This is conventional command-line tool behavior. -f now just means
"enable binary output on terminals".

Add a -f option to llvm-

Make LLVM command-line tools overwrite their output files without -f.
This is conventional command-line tool behavior. -f now just means
"enable binary output on terminals".

Add a -f option to llvm-extract and llvm-link, for consistency.

Remove F_Force from raw_fd_ostream and enable overwriting and
truncating by default. Introduce an F_Excl flag to permit users to
enable a failure when the file already exists. This flag is
currently unused.

Update Makefiles and documentation accordingly.

llvm-svn: 79990

show more ...


# b9f25f9e 23-Aug-2009 Chris Lattner <sabre@nondot.org>

eliminate the ostream version of CheckBitcodeOutputToConsole,
change the raw_ostream one to take the raw_ostream byref instead
of byptr. Prune #includes, eliminate a use of Streams.h

llvm-svn: 79863


# 9e6f1f16 23-Aug-2009 Chris Lattner <sabre@nondot.org>

Change raw_fd_ostream to take flags as an optional bitmask
instead of as two bools. Use this to add a F_Append flag
which has the obvious behavior.

Other unrelated changes conflated into this patc

Change raw_fd_ostream to take flags as an optional bitmask
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

show more ...


# ee05152c 16-Jul-2009 Dan Gohman <gohman@apple.com>

Convert more tools code from cerr and cout to errs() and outs().

llvm-svn: 76070


# 19251ec8 15-Jul-2009 Owen Anderson <resistor@mac.com>

To simplify the upcoming context-on-type change, switch all command line tools to using the default global context for now.

This will let us to hardwire stuff to the global context in the short term

To simplify the upcoming context-on-type change, switch all command line 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

show more ...


# 607818a2 15-Jul-2009 Dan Gohman <gohman@apple.com>

Add a Force option to raw_fd_ostream to specify whether opening
an existing file is considered an error. Convert several tools
to use raw_fd_ostream instead of std::ostream, and to use this
new optio

Add a Force option to raw_fd_ostream to specify whether opening
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

show more ...


# a76611a5 02-Jul-2009 Chris Lattner <sabre@nondot.org>

switch the .ll parser into SMDiagnostic.

llvm-svn: 74734


# 1cf085d5 01-Jul-2009 Owen Anderson <resistor@mac.com>

Hold the LLVMContext by reference rather than by pointer.

llvm-svn: 74640


# 6773d388 01-Jul-2009 Owen Anderson <resistor@mac.com>

Add a pointer to the owning LLVMContext to Module. This requires threading LLVMContext through a lot
of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools.

Patches

Add a pointer to the owning LLVMContext to Module. This requires threading 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

show more ...


# e3fc2d13 06-Mar-2009 Chris Lattner <sabre@nondot.org>

Change various llvm utilities to use PrettyStackTraceProgram in
their main routines. This makes the tools print their argc/argv
commands if they crash.

llvm-svn: 66248


Revision tags: llvmorg-2.5.0
# ac161bff 02-Jan-2009 Chris Lattner <sabre@nondot.org>

Reimplement the old and horrible bison parser for .ll files with a nice
and clean recursive descent parser.

This change has a couple of ramifications:
1. The parser code is about 400 lines shorter (

Reimplement the old and horrible bison parser for .ll files with a nice
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

show more ...


Revision tags: llvmorg-2.4.0, llvmorg-2.3.0
# c6f915e4 21-Feb-2008 Devang Patel <dpatel@apple.com>

Add -disable-output option.

llvm-svn: 47422


Revision tags: llvmorg-2.2.0
# 345353d6 29-Dec-2007 Chris Lattner <sabre@nondot.org>

remove attributions from tools.

llvm-svn: 45421


# 2c6a821f 08-Oct-2007 Dan Gohman <gohman@apple.com>

Move the space in overview output for commands out of each of the
commands and into the common code.

llvm-svn: 42752


Revision tags: llvmorg-2.1.0
# e16561cd 05-Jul-2007 Gabor Greif <ggreif@gmail.com>

Here is the bulk of the sanitizing.
Almost all occurrences of "bytecode" in the sources have been eliminated.

llvm-svn: 37913


Revision tags: llvmorg-2.0.0
# 6d80e21a 06-May-2007 Chris Lattner <sabre@nondot.org>

switch tools to bitcode instead of bytecode

llvm-svn: 36868


# 52e1f0f2 22-Apr-2007 Chris Lattner <sabre@nondot.org>

add a temporary -bitcode option, which instructs llvm-as to produce a bitcode file instead of a bytecode file

llvm-svn: 36333


# 19bb6b99 21-Jan-2007 Chris Lattner <sabre@nondot.org>

default to emiting an uncompressed .bc file

llvm-svn: 33420


# f3baad3e 07-Dec-2006 Bill Wendling <isanbard@gmail.com>

Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp.

llvm-svn: 32298


# 76d4632d 06-Dec-2006 Chris Lattner <sabre@nondot.org>

make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.

With this change, I can now move -stats to print when llvm_shutdown is called.

llvm-svn: 32250


# afd54eb8 29-Nov-2006 Bill Wendling <isanbard@gmail.com>

Replacing std::iostreams with llvm iostreams. Some of these changes involve
adding a temporary wrapper around the ostream to make it friendly to
functions expecting an LLVM stream. This should be fix

Replacing std::iostreams with llvm iostreams. Some of these changes involve
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

show more ...


Revision tags: llvmorg-1.9.0
# 713eedc1 18-Aug-2006 Reid Spencer <rspencer@reidspencer.com>

For PR797:
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

For PR797:
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

show more ...


# 5734e8d7 06-Jul-2006 Chris Lattner <sabre@nondot.org>

Change the verifier to never throw an exception. Instead verifyModule canoptionally return the string error, which is an easier api for clients touse anyway.

llvm-svn: 29017


# d6592899 29-May-2006 Chris Lattner <sabre@nondot.org>

Silly cleanup

llvm-svn: 28544


Revision tags: llvmorg-1.6.0, llvmorg-1.5.0
# 650ba8eb 22-Apr-2005 Misha Brukman <brukman+llvm@gmail.com>

Remove trailing whitespace

llvm-svn: 21428


123456