summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Archive/ArchiveWriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-231-10/+9
| | | | | | | | | | | | | | | | | | 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
* Make the use of const with respect to LLVMContext sane. Hopefully this is ↵Owen Anderson2009-07-011-1/+1
| | | | | | | | the last time, for the moment, that I will need to make far-reaching changes. llvm-svn: 74655
* Hold the LLVMContext by reference rather than by pointer.Owen Anderson2009-07-011-1/+1
| | | | llvm-svn: 74640
* Add a pointer to the owning LLVMContext to Module. This requires threading ↵Owen Anderson2009-07-011-4/+3
| | | | | | | | | | 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
* Avoid leaking memory in an error path. NoticedDuncan Sands2009-06-111-3/+4
| | | | | | by cppcheck. llvm-svn: 73187
* Silence unused variable warnings.Devang Patel2008-11-211-0/+4
| | | | llvm-svn: 59841
* Create archives with the same permissions are ar.Owen Anderson2008-05-241-0/+7
| | | | | | Patch by Mikael Lepistö. llvm-svn: 51540
* Clean up the use of static and anonymous namespaces. This turned upDan Gohman2008-05-131-2/+2
| | | | | | | several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017
* Change the MemoryBuffer::getFile* methods to take just a pointer to theChris Lattner2008-04-011-4/+2
| | | | | | | | start of a filename, not a filename+length. All clients can produce a null terminated name, and the system api's require null terminated strings anyway. llvm-svn: 49041
* change the archive stuff to use MemoryBuffer instead of mappedfile.Chris Lattner2008-04-011-26/+20
| | | | | | | MemoryBuffer is higher level and more closely matches the model needed. llvm-svn: 49029
* Remove MappedFile support for mapping files for write and execChris Lattner2008-04-011-2/+2
| | | | | | | and shared. This complicates the design, is not used, and probably doesn't even work. llvm-svn: 49022
* add missing #includesChris Lattner2008-04-011-0/+1
| | | | llvm-svn: 49020
* Make llvm-ar behave like ar, if you create an empty archive, ar creates an ↵Andrew Lenharth2008-02-281-1/+1
| | | | | | empty archive. llvm-ar would not generate an output file in this case llvm-svn: 47733
* Update gcc 4.3 warnings fix patch with recent head changesAnton Korobeynikov2008-02-201-1/+2
| | | | llvm-svn: 47368
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* eliminate residual cruft related to recognizing bytecodeGabor Greif2007-07-061-7/+2
| | | | | | | files. bitcode files are the only LLVM format left. llvm-svn: 37945
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-6/+6
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* adjust this to live in lib/ArchiveChris Lattner2007-05-061-0/+482
llvm-svn: 36886
OpenPOWER on IntegriCloud