summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ar/llvm-ar.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* For PR797:Reid Spencer2006-08-241-5/+9
| | | | | | | Remove exception handling from the bytecode archiver and adjust the llvm-ar tool to accommodate the new interfaces. llvm-svn: 29866
* For PR797:Reid Spencer2006-08-231-59/+86
| | | | | | Remove exception throwing from Path::getDirectoryContents and its users. llvm-svn: 29841
* For PR797:Reid Spencer2006-08-231-4/+12
| | | | | | | Remove exceptions from the Path::create*OnDisk methods. Update their users to handle error messages via arguments and result codes. llvm-svn: 29840
* Use Path::getFileStatusChris Lattner2006-08-011-7/+10
| | | | llvm-svn: 29445
* Change Path::getStatusInfo to return a boolean and error string on an errorChris Lattner2006-07-281-5/+9
| | | | | | | | instead of throwing an exception. This reduces the amount of code that is exposed to exceptions (e.g. FileUtilities), though it is clearly only one step along the way. llvm-svn: 29395
* Remove EH use from the Archive library and adjust its users accordingly.Reid Spencer2006-07-071-4/+12
| | | | llvm-svn: 29066
* Patches to make the LLVM sources more -pedantic clean. Patch providedChris Lattner2006-05-241-1/+1
| | | | | | by Anton Korobeynikov! This is a step towards closing PR786. llvm-svn: 28447
* more compliance stufffDuraid Madina2005-12-281-0/+1
| | | | llvm-svn: 25037
* Final Changes For PR495:Reid Spencer2005-07-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This chagne just renames some sys::Path methods to ensure they are not misused. The Path documentation now divides methods into two dimensions: Path/Disk and accessor/mutator. Path accessors and mutators only operate on the Path object itself without making any disk accesses. Disk accessors and mutators will also access or modify the file system. Because of the potentially destructive nature of disk mutators, it was decided that all such methods should end in the work "Disk" to ensure the user recognizes that the change will occur on the file system. This patch makes that change. The method name changes are: makeReadable -> makeReadableOnDisk makeWriteable -> makeWriteableOnDisk makeExecutable -> makeExecutableOnDisk setStatusInfo -> setStatusInfoOnDisk createDirectory -> createDirectoryOnDisk createFile -> createFileOnDisk createTemporaryFile -> createTemporaryFileOnDisk destroy -> eraseFromDisk rename -> renamePathOnDisk These changes pass the Linux Deja Gnu tests. llvm-svn: 22354
* For PR495:Reid Spencer2005-07-071-3/+3
| | | | | | | | | | | | | | | | | | | | | Get rid of the difference between file paths and directory paths. The Path class now simply stores a path that can refer to either a file or a directory. This required various changes in the implementation and interface of the class with the corresponding impact to its users. Doxygen comments were also updated to reflect these changes. Interface changes are: appendDirectory -> appendComponent appendFile -> appendComponent elideDirectory -> eraseComponent elideFile -> eraseComponent elideSuffix -> eraseSuffix renameFile -> rename setDirectory -> set setFile -> set Changes pass Dejagnu and llvm-test/SingleSource tests. llvm-svn: 22349
* Remove trailing whitespaceMisha Brukman2005-04-221-37/+37
| | | | llvm-svn: 21428
* Use binary mode for reading/writing bytecode filesJeff Cohen2005-01-221-1/+3
| | | | llvm-svn: 19751
* Unbreak all archive reading operations introduced by the last patch whichReid Spencer2004-12-151-2/+3
| | | | | | | always exited the program with exit code 1 in these cases, regardless of whether an error occurred or not. llvm-svn: 18966
* Do not fail an assertion on a broken archiveChris Lattner2004-12-151-1/+6
| | | | llvm-svn: 18959
* For PR351:Reid Spencer2004-12-151-1/+0
| | | | | | Remove #inclusion of Support/FileUtilities.h which isn't needed any more. llvm-svn: 18950
* Path::get -> Path::toStringReid Spencer2004-12-111-9/+9
| | | | llvm-svn: 18785
* Implement file replacement correctly even with the f (TruncateNames) flagReid Spencer2004-12-021-2/+23
| | | | | | | set. The member name comparison was failing for truncated names. This patch fixes that. Truncated names are now properly replaced. llvm-svn: 18423
* The Archive class now has differentiation for BSD4.4 and SVR4 style archiveReid Spencer2004-11-201-6/+2
| | | | | | symbol tables. Adjust our usage to compensate. llvm-svn: 18046
* Per code review: \Reid Spencer2004-11-161-113/+105
| | | | | | | | | | | | | | | | * hide the compatibility option \ * Make static things static \ * Use cl::extrahelp instead of cl::MoreHelp (defunct) \ * Use cl::PrintHelpMessage instead of our own printUse function \ * Use a std::set<sys::Path> for the path list because its now required by \ the sys::Path class and also ensues directories are traversed in sorted \ order.\ * Implement symbol table printing locally instead of in libLLVMArchive \ * Adjust to changes in llvm::Archive interface \ * Make sure we destruct objects even if exceptions occur. \ * Fix a typo in an output string. llvm-svn: 17877
* This file was originally developed by the LLVM research group so this ↵Tanya Lattner2004-11-151-3/+2
| | | | | | comment should stay. I also do NOT want my name explicity listed on src files. I am already mentioned in the credits. llvm-svn: 17833
* Correct call of methods whose names have changed.Reid Spencer2004-11-141-4/+4
| | | | llvm-svn: 17803
* Total rewrite using Archive library & new functionalityReid Spencer2004-11-141-481/+635
| | | | llvm-svn: 17790
* Changes For Bug 352Reid Spencer2004-09-011-2/+2
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* The functions in Signal.h are now in the llvm::sys namespace - adjustReid Spencer2004-08-291-1/+1
| | | | llvm-svn: 16091
* Add #include <iostream> since Value.h does not include it any more.Reid Spencer2004-07-041-0/+1
| | | | llvm-svn: 14623
* Header file movedChris Lattner2004-05-271-1/+1
| | | | llvm-svn: 13813
* Make sure to print a stack trace whenever an error signal is delivered to theChris Lattner2004-02-191-2/+3
| | | | | | tool. llvm-svn: 11632
* Use new getFileSize function. Eliminate some using directives. Reorder ↵Chris Lattner2003-12-301-27/+20
| | | | | | #includes a bit llvm-svn: 10651
* New command line parsing. This isn't as perfect as I would have liked. The ↵Tanya Lattner2003-12-061-58/+247
| | | | | | CommandLine Library needs to be extended, in order to parse the options and allow for optional dashes. In addition, the help option isn't correct since I do the parsing mostly myself. But this is in the ocorrect ar format. llvm-svn: 10297
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-2/+4
| | | | llvm-svn: 9903
* Removed extraneous comment line.John Criswell2003-10-201-1/+0
| | | | llvm-svn: 9308
* Added copyright header to all C++ source files.John Criswell2003-10-201-0/+8
| | | | llvm-svn: 9291
OpenPOWER on IntegriCloud