aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/FileUpdate/FileUpdate.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-12-16MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> ↵Michael J. Spencer1-7/+5
via an out parm. llvm-svn: 121958
2010-12-09Missed FileUpdate because CMake doesn't build it yet :(.Michael J. Spencer1-4/+6
llvm-svn: 121385
2010-11-29Missed another one.Michael J. Spencer1-1/+1
llvm-svn: 120302
2010-10-07Move tool_output_file into its own file.Dan Gohman1-1/+1
llvm-svn: 115973
2010-09-01Make tool_output_file's raw_ostream instance a member variable insteadDan Gohman1-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
2010-08-20Diagnose attempts to update standard output.Dan Gohman1-0/+5
llvm-svn: 111649
2010-08-20Convert FileUpdate to use tool_output_file, and to useDan Gohman1-11/+6
errs() instead of outs() for its verbose messages. llvm-svn: 111648
2010-05-27When handling raw_ostream errors manually, use clear_error() so thatDan Gohman1-0/+1
raw_ostream doesn't try to do its own error handling. llvm-svn: 104881
2009-08-25Make LLVM command-line tools overwrite their output files without -f.Dan Gohman1-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
2009-08-23Change raw_fd_ostream to take flags as an optional bitmask Chris Lattner1-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
2009-08-03Add FileUpdate tool, conditionally updates its output based on its input.Daniel Dunbar1-0/+86
- Gratuitous and unused, but possibly useful one day. llvm-svn: 77954