aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-dis
AgeCommit message (Collapse)AuthorFilesLines
2014-06-13Remove 'using std::error_code' from tools.Rafael Espindola1-2/+1
llvm-svn: 210876
2014-06-12Don't use 'using std::error_code' in include/llvm.Rafael Espindola1-0/+1
This should make sure that most new uses use the std prefix. llvm-svn: 210835
2014-06-12Remove system_error.h.Rafael Espindola1-1/+1
This is a minimal change to remove the header. I will remove the occurrences of "using std::error_code" in a followup patch. llvm-svn: 210803
2014-04-29raw_ostream: Forward declare OpenFlags and include FileSystem.h only where ↵Benjamin Kramer1-0/+1
necessary. llvm-svn: 207593
2014-04-25[C++] Use 'nullptr'. Tools edition.Craig Topper1-2/+2
llvm-svn: 207176
2014-03-08[C++11] Add 'override' keyword to virtual methods that override their base ↵Craig Topper1-2/+2
class. llvm-svn: 203345
2014-03-06Replace OwningPtr<T> with std::unique_ptr<T>.Ahmed Charles1-4/+4
This compiles with no changes to clang/lld/lldb with MSVC and includes overloads to various functions which are used by those projects and llvm which have OwningPtr's as parameters. This should allow out of tree projects some time to move. There are also no changes to libs/Target, which should help out of tree targets have time to move, if necessary. llvm-svn: 203083
2014-03-06[Layering] Move DebugInfo.h into the IR library where its implementationChandler Carruth1-1/+1
already lives. llvm-svn: 203046
2014-02-24Replace the F_Binary flag with a F_Text one.Rafael Espindola1-1/+1
After this I will set the default back to F_None. The advantage is that before this patch forgetting to set F_Binary would corrupt a file on windows. Forgetting to set F_Text produces one that cannot be read in notepad, which is a better failure mode :-) llvm-svn: 202052
2014-01-14Return an error_code from materializeAllPermanently.Rafael Espindola1-2/+5
llvm-svn: 199275
2014-01-07Move the LLVM IR asm writer header files into the IR directory, as theyChandler Carruth1-1/+1
are part of the core IR library in order to support dumping and other basic functionality. Rename the 'Assembly' include directory to 'AsmParser' to match the library name and the only functionality left their -- printing has been in the core IR library for quite some time. Update all of the #includes to match. All of this started because I wanted to have the layering in good shape before I started adding support for printing LLVM IR using the new pass infrastructure, and commandline support for the new pass infrastructure. llvm-svn: 198688
2013-12-10[CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt.NAKAMURA Takumi1-1/+5
llvm-svn: 196908
2013-09-19Revert "Encapsulate PassManager debug flags to avoid static init and cxa_exit."Andrew Trick1-3/+0
Working on a better solution to this. This reverts commit 7d4e9934e7ca83094c5cf41346966c8350179ff2. llvm-svn: 190990
2013-09-18Encapsulate PassManager debug flags to avoid static init and cxa_exit.Andrew Trick1-0/+3
This puts all the global PassManager debugging flags, like -print-after-all and -time-passes, behind a managed static. This eliminates their static initializers and, more importantly, exit-time destructors. The only behavioral change I anticipate is that tools need to initialize the PassManager before parsing the command line in order to export these options, which makes sense. Tools that already initialize the standard passes (opt/llc) don't need to do anything new. llvm-svn: 190974
2013-07-16Add a wrapper for open.Rafael Espindola1-3/+2
This centralizes the handling of O_BINARY and opens the way for hiding more differences (like how open behaves with directories). llvm-svn: 186447
2013-04-12Replace uses of the deprecated std::auto_ptr with OwningPtr.Andy Gibbs1-1/+1
llvm-svn: 179373
2013-01-02Move all of the header files which are involved in modelling the LLVM IRChandler Carruth1-4/+4
into their new header subdirectory: include/llvm/IR. This matches the directory structure of lib, and begins to correct a long standing point of file layout clutter in LLVM. There are still more header files to move here, but I wanted to handle them in separate commits to make tracking what files make sense at each layer easier. The only really questionable files here are the target intrinsic tablegen files. But that's a battle I'd rather not fight today. I've updated both CMake and Makefile build systems (I think, and my tests think, but I may have missed something). I've also re-sorted the includes throughout the project. I'll be committing updates to Clang, DragonEgg, and Polly momentarily. llvm-svn: 171366
2012-12-04Sort the #include lines for tools/...Chandler Carruth1-5/+5
Again, tools are trickier to pick the main module header for than library source files. I've started to follow the pattern of using LLVMContext.h when it is included as a stub for program source files. llvm-svn: 169252
2012-10-26Adjust llvm-ar and llvm-ranlib to not depend on exception handling.Joerg Sonnenberger1-1/+0
Always use an exit code of 1, but print the help message if useful. Remove the exception handling tag in llvm-as, llvm-dis and llvm-bcanalyzer, where it isn't used. llvm-svn: 166767
2012-06-28Move lib/Analysis/DebugInfo.cpp to lib/VMCore/DebugInfo.cpp andBill Wendling1-1/+1
include/llvm/Analysis/DebugInfo.h to include/llvm/DebugInfo.h. The reasoning is because the DebugInfo module is simply an interface to the debug info MDNodes and has nothing to do with analysis. llvm-svn: 159312
2012-06-15Remove assignments which aren't used afterwards.Bill Wendling1-2/+0
llvm-svn: 158534
2012-02-06Enable streaming of bitcodeDerek Schuff1-6/+13
This CL delays reading of function bodies from initial parse until materialization, allowing overlap of compilation with bitcode download. llvm-svn: 149918
2011-12-12LLVMBuild: Remove trailing newline, which irked me.Daniel Dunbar1-1/+0
llvm-svn: 146409
2011-11-11LLVMBuild: Add description files for the LLVM tools.Daniel Dunbar1-0/+23
llvm-svn: 144417
2011-10-18build: Tidy up a bunch of tool Makefiles, and simplify where possible using theDaniel Dunbar1-3/+3
new all-targets pseudo-component. llvm-svn: 142401
2011-06-18eliminate the Type::getDescription() method, using "<<" instead. This Chris Lattner1-1/+1
removes some gunk from LLVMContext. llvm-svn: 133360
2011-03-17Reapply: Add type output to llvm-dis annotations. Patch by Yuri!Stuart Hastings1-1/+1
llvm-svn: 127824
2011-03-17Revert 127813 while fixing broken test.Stuart Hastings1-1/+1
llvm-svn: 127814
2011-03-17Add type output to llvm-dis. Patch by Yuri!Stuart Hastings1-1/+1
llvm-svn: 127813
2011-03-12Update link components for llvm-dis and LTO.Oscar Fuentes1-1/+1
llvm-svn: 127545
2011-03-11While printing annotations, print line number and variable name if debug ↵Devang Patel2-5/+50
info is present. llvm-svn: 127470
2010-12-16llvm-dis: Fix memory leak. ParseBitcodeFile should be taking ownership ofMichael J. Spencer1-5/+7
the MemoryBuffer*, however, it doesn't seem to delete it. llvm-svn: 122004
2010-12-16llvm-dis: Simplify MemoryBuffer usage.Michael J. Spencer1-4/+2
llvm-svn: 121975
2010-12-16Fix whitespace.Michael J. Spencer1-10/+10
llvm-svn: 121974
2010-12-16Fix some compiler warnings.Daniel Dunbar1-2/+2
llvm-svn: 121959
2010-12-16MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> ↵Michael J. Spencer1-4/+5
via an out parm. llvm-svn: 121958
2010-12-09Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with ↵Michael J. Spencer1-4/+6
error_code &ec. And fix clients. llvm-svn: 121379
2010-11-29Merge System into Support.Michael J. Spencer1-1/+1
llvm-svn: 120298
2010-10-07Move tool_output_file into its own file.Dan Gohman1-1/+1
llvm-svn: 115973
2010-09-13Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally."Michael J. Spencer1-2/+1
This reverts commit r113632 Conflicts: cmake/modules/AddLLVM.cmake llvm-svn: 113819
2010-09-10CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally.Michael J. Spencer1-1/+2
llvm-svn: 113632
2010-09-02add a new "llvm-dis -show-annotations" option, which causes it to printChris Lattner1-1/+31
#uses comments, with a testcase. llvm-svn: 112906
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-20Use the new tool_output_file in several tools. This fixes a varietyDan Gohman1-9/+6
of problems with output files being left behind or output streams being left unclosed. Fix llvm-mc to respect the -o option in all modes, rather than hardcoding outs() in some cases. llvm-svn: 111603
2010-01-24make -fno-rtti the default unless a directory builds with REQUIRES_RTTI.Chris Lattner1-1/+0
llvm-svn: 94378
2010-01-22Stop building RTTI information for *most* llvm libraries. NotableChris Lattner1-1/+1
missing ones are libsupport, libsystem and libvmcore. libvmcore is currently blocked on bugpoint, which uses EH. Once it stops using EH, we can switch it off. This #if 0's out 3 unit tests, because gtest requires RTTI information. Suggestions welcome on how to fix this. llvm-svn: 94164
2009-09-15Don't bother using a PassManager just to print a Module.Dan Gohman1-7/+2
llvm-svn: 81858
2009-09-11Fix llvm-extract's "writing bitcode to a terminal" warning, which wasn'tDan Gohman1-6/+6
working. To support this, add an is_displayed() function to raw_ostream, and generalize Process::StandardOutIsDisplayed and friends in order to support it. Also, call RemoveFileOnSignal before creating a file instead of after, so that the file isn't left behind if the program is interrupted between when the file is created and RemoveFileOnSignal is called. While here, add a -S to llvm-extract and port it to IRReader so that it supports assembly input. llvm-svn: 81568
2009-08-25Make LLVM command-line tools overwrite their output files without -f.Dan Gohman1-4/+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-77/+57
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