summaryrefslogtreecommitdiffstats
path: root/llvm/utils/FileUpdate/FileUpdate.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make tool_output_file's raw_ostream instance a member variable insteadDan Gohman2010-09-011-1/+1
| | | | | | | | | | of a base class. This makes it possible to unregister the file from FilesToRemove when the file is done. Also, this eliminates the need for formatted_tool_output_file. llvm-svn: 112706
* Diagnose attempts to update standard output.Dan Gohman2010-08-201-0/+5
| | | | llvm-svn: 111649
* Convert FileUpdate to use tool_output_file, and to useDan Gohman2010-08-201-11/+6
| | | | | | errs() instead of outs() for its verbose messages. llvm-svn: 111648
* When handling raw_ostream errors manually, use clear_error() so thatDan Gohman2010-05-271-0/+1
| | | | | | raw_ostream doesn't try to do its own error handling. llvm-svn: 104881
* Make LLVM command-line tools overwrite their output files without -f.Dan Gohman2009-08-251-1/+1
| | | | | | | | | | | | | | | | 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
* Change raw_fd_ostream to take flags as an optional bitmask Chris Lattner2009-08-231-2/+2
| | | | | | | | | | | | | | | | 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
* Add FileUpdate tool, conditionally updates its output based on its input.Daniel Dunbar2009-08-031-0/+86
- Gratuitous and unused, but possibly useful one day. llvm-svn: 77954
OpenPOWER on IntegriCloud