summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ar/llvm-ar.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a setLastModificationAndAccessTime to PathV2.Rafael Espindola2013-06-201-19/+35
| | | | | | With this we can remove the last use of PathV1 from llvm-ar.cpp. llvm-svn: 184464
* Use a raw_fd_ostream instead of a std::ofstream.Rafael Espindola2013-06-201-4/+5
| | | | llvm-svn: 184460
* Remove a trivial use of sys::Path.Rafael Espindola2013-06-201-12/+5
| | | | llvm-svn: 184455
* Add support for getting the last modification time from a file_status.Rafael Espindola2013-06-201-6/+5
| | | | | | Use that in llvm-ar.cpp to replace a use of sys::PathWithStatus. llvm-svn: 184450
* Use only the filename when deciding if a file is a duplicate.Rafael Espindola2013-06-201-1/+1
| | | | | | Matches gnu ar behavior. llvm-svn: 184448
* Add r184420 back, but also handle long file names.Rafael Espindola2013-06-201-8/+0
| | | | | | | | | | Original message: Don't include directory names in archives. This matches the behavior of both gnu and os x versions of ar. llvm-svn: 184423
* Revert "Don't include directory names in archives."Rafael Espindola2013-06-201-0/+8
| | | | | | | This reverts commit 184420. Investigating the bot failures. llvm-svn: 184421
* Don't include directory names in archives.Rafael Espindola2013-06-201-8/+0
| | | | | | This matches the behavior of both gnu and os x versions of ar. llvm-svn: 184420
* Remove remaining bits of the old LLVM specific symtab handling.Rafael Espindola2013-06-201-29/+6
| | | | llvm-svn: 184418
* Convert a use of sys::Path.Rafael Espindola2013-06-201-16/+10
| | | | llvm-svn: 184412
* Remove last use of PathV1.h from Archive.hRafael Espindola2013-06-191-0/+1
| | | | | | Store the individual fields we need instead of a sys::FileStatus. llvm-svn: 184353
* Always set the mode.Rafael Espindola2013-06-191-4/+10
| | | | | | | This matches GNU ar behavior. Also remove the now unused getFileStatus method. Not sure how to add a test, it would have to run ls -l or something like that. llvm-svn: 184337
* Remove more uses of sys::Path.Rafael Espindola2013-06-191-6/+6
| | | | llvm-svn: 184328
* Another attempt at fixing the bots.Rafael Espindola2013-06-191-1/+1
| | | | llvm-svn: 184318
* Attempt at fixing some bots.Rafael Espindola2013-06-191-1/+1
| | | | llvm-svn: 184316
* Reduce sys::Path usage in llvm-ar.Rafael Espindola2013-06-191-19/+21
| | | | llvm-svn: 184315
* Remove the 'R' modifier.Rafael Espindola2013-06-191-45/+4
| | | | | | | It is not present in GNU or OS X versions and doesn't make a lot of sense for llvm-ar. llvm-svn: 184306
* Move lib/Archive to tools/llvm-ar.Rafael Espindola2013-06-171-1/+1
| | | | | | | llvm-ar is the only tool that needs to write archive files. Every other tool should be able to use the lib/Object interface. llvm-svn: 184083
* Remove the LLVM specific archive index.Rafael Espindola2013-06-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Archive files (.a) can have a symbol table indicating which object files in them define which symbols. The purpose of this symbol table is to speed up linking by allowing the linker the read only the .o files it is actually going to use instead of having to parse every object's symbol table. LLVM's archive library currently supports a LLVM specific format for such table. It is hard to see any value in that now that llvm-ld is gone: * System linkers don't use it: GNU ar uses the same plugin as the linker to create archive files with a regular index. The OS X ar creates no symbol table for IL files, I assume the linker just parses all IL files. * It doesn't interact well with archives having both IL and native objects. * We probably don't want to be responsible for yet another archive format variant. This patch then: * Removes support for creating and reading such index from lib/Archive. * Remove llvm-ranlib, since there is nothing left for it to do. We should in the future add support for regular indexes to llvm-ar for both native and IL objects. When we do that, llvm-ranlib should be reimplemented as a symlink to llvm-ar, as it is equivalent to "ar s". llvm-svn: 184019
* Move all of the header files which are involved in modelling the LLVM IRChandler Carruth2013-01-021-2/+2
| | | | | | | | | | | | | | | | | | | | | 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
* Sort the #include lines for tools/...Chandler Carruth2012-12-041-4/+4
| | | | | | | | 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
* Adjust llvm-ar and llvm-ranlib to not depend on exception handling.Joerg Sonnenberger2012-10-261-99/+104
| | | | | | | | 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
* Remove references to compression in llvm-ar. It has been a long time since weRafael Espindola2012-08-101-13/+6
| | | | | | switched from a bytecode+bzip2 to the current bitcode. llvm-svn: 161651
* Fix Whitespace.Michael J. Spencer2011-01-101-14/+14
| | | | llvm-svn: 123152
* Support/Path: Deprecate PathV1::exists and replace all uses with ↵Michael J. Spencer2011-01-101-2/+5
| | | | | | PathV2::fs::exists. llvm-svn: 123151
* convert llvm-ar and llvm-ranlib to raw_ostream from iostreams.Chris Lattner2010-11-291-21/+20
| | | | | | Patch by Danil Malyshev! llvm-svn: 120341
* Merge System into Support.Michael J. Spencer2010-11-291-1/+1
| | | | llvm-svn: 120298
* remove the last *stream> #include from a public header.Chris Lattner2009-08-241-0/+1
| | | | llvm-svn: 79892
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-231-12/+11
| | | | | | | | | | | | | | | | | | forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. llvm-svn: 79869
* To simplify the upcoming context-on-type change, switch all command line ↵Owen Anderson2009-07-151-1/+1
| | | | | | | | 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
* Use errs() instead of std::cerr.Dan Gohman2009-07-151-8/+9
| | | | llvm-svn: 75791
* Hold the LLVMContext by reference rather than by pointer.Owen Anderson2009-07-011-2/+2
| | | | llvm-svn: 74640
* Add a pointer to the owning LLVMContext to Module. This requires threading ↵Owen Anderson2009-07-011-2/+4
| | | | | | | | | | 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
* Change various llvm utilities to use PrettyStackTraceProgram inChris Lattner2009-03-061-4/+5
| | | | | | | their main routines. This makes the tools print their argc/argv commands if they crash. llvm-svn: 66248
* fix PR3488: llvm-ar r doesn't replace existing filesChris Lattner2009-02-051-1/+1
| | | | | | Patch by Daniel Shelton! llvm-svn: 63870
* Make llvm-ar behave like ar, if you create an empty archive, ar creates an ↵Andrew Lenharth2008-02-281-0/+1
| | | | | | empty archive. llvm-ar would not generate an output file in this case llvm-svn: 47733
* remove attributions from tools.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45421
* Actually parse q operation in llvm-arSeo Sanghyeon2007-12-251-0/+1
| | | | llvm-svn: 45353
* Fix a typo in a comment.Dan Gohman2007-10-151-1/+1
| | | | llvm-svn: 43016
* Move the space in overview output for commands out of each of theDan Gohman2007-10-081-1/+1
| | | | | | commands and into the common code. llvm-svn: 42752
* eliminate residual cruft related to recognizing bytecodeGabor Greif2007-07-061-5/+2
| | | | | | | files. bitcode files are the only LLVM format left. llvm-svn: 37945
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-7/+7
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* switch tools to bitcode instead of bytecodeChris Lattner2007-05-061-16/+5
| | | | llvm-svn: 36868
* Don't rely on destructed local storage. Thanks, Chris.Reid Spencer2007-04-081-6/+6
| | | | llvm-svn: 35769
* For PR1291:Reid Spencer2007-04-071-3/+6
| | | | | | | Change uses of sys::Path class to sys::PathWithStatus in those places where the file status information is needed. llvm-svn: 35743
* For PR789:Reid Spencer2007-03-291-16/+16
| | | | | | | | Make the sys::Path::getFileStatus function more efficient by having it return a pointer to the FileStatus structure rather than copy it. Adjust uses of the function accordingly. Also, fix some memory issues in sys::Path. llvm-svn: 35476
* getFileStatus has a new parameter (caught by VC++).Jeff Cohen2007-03-291-2/+2
| | | | llvm-svn: 35466
* make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.Chris Lattner2006-12-061-1/+2
| | | | | | With this change, I can now move -stats to print when llvm_shutdown is called. llvm-svn: 32250
* For PR786:Reid Spencer2006-11-021-1/+0
| | | | | | | | | | Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting fall out by removing unused variables. Remaining warnings have to do with unused functions (I didn't want to delete code without review) and unused variables in generated code. Maintainers should clean up the remaining issues when they see them. All changes pass DejaGnu tests and Olden. llvm-svn: 31380
* Fix a bug caused by change in the interface of Archive::writeToDisk.Reid Spencer2006-08-251-4/+4
| | | | llvm-svn: 29869
OpenPOWER on IntegriCloud