aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Archive/Archive.cpp
AgeCommit message (Collapse)AuthorFilesLines
2011-01-16UnRevert "Revert the archive part of "Support/PathV2: Add identify_magic.""Michael J. Spencer1-3/+2
This reverts commit dd103021a889a986a181ce36ed7b0e8dc9b645e1. llvm-svn: 123595
2011-01-16Revert the archive part of "Support/PathV2: Add identify_magic."Michael J. Spencer1-2/+3
llvm-svn: 123593
2011-01-15Support/PathV2: Add identify_magic.Michael J. Spencer1-3/+2
llvm-svn: 123548
2011-01-10Fix Whitespace.Michael J. Spencer1-11/+11
llvm-svn: 123152
2011-01-10Support/Path: Deprecate PathV1::exists and replace all uses with ↵Michael J. Spencer1-2/+4
PathV2::fs::exists. llvm-svn: 123151
2010-12-16MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> ↵Michael J. Spencer1-8/+6
via an out parm. llvm-svn: 121958
2010-12-09Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with ↵Michael J. Spencer1-4/+11
error_code &ec. And fix clients. llvm-svn: 121379
2010-11-29Merge System into Support.Michael J. Spencer1-1/+1
llvm-svn: 120298
2010-04-19Don't write into MemoryBuffers.Benjamin Kramer1-3/+2
llvm-svn: 101783
2010-04-19Fix -Wcast-qual warnings.Dan Gohman1-1/+1
llvm-svn: 101779
2010-01-27Kill ModuleProvider and ghost linkage by inverting the relationship betweenJeffrey Yasskin1-29/+14
Modules and ModuleProviders. Because the "ModuleProvider" simply materializes GlobalValues now, and doesn't provide modules, it's renamed to "GVMaterializer". Code that used to need a ModuleProvider to materialize Functions can now materialize the Functions directly. Functions no longer use a magic linkage to record that they're materializable; they simply ask the GVMaterializer. Because the C ABI must never change, we can't remove LLVMModuleProviderRef or the functions that refer to it. Instead, because Module now exposes the same functionality ModuleProvider used to, we store a Module* in any LLVMModuleProviderRef and translate in the wrapper methods. The bindings to other languages still use the ModuleProvider concept. It would probably be worth some time to update them to follow the C++ more closely, but I don't intend to do it. Fixes http://llvm.org/PR5737 and http://llvm.org/PR5735. llvm-svn: 94686
2009-08-23Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner1-8/+8
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
2009-07-13Fix some non-sensical code.Daniel Dunbar1-1/+4
- This makes it more like other similar code in Archive handling. llvm-svn: 75452
2009-07-01Make the use of const with respect to LLVMContext sane. Hopefully this is ↵Owen Anderson1-3/+3
the last time, for the moment, that I will need to make far-reaching changes. llvm-svn: 74655
2009-07-01Hold the LLVMContext by reference rather than by pointer.Owen Anderson1-3/+3
llvm-svn: 74640
2009-07-01Add a pointer to the owning LLVMContext to Module. This requires threading ↵Owen Anderson1-4/+6
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
2009-01-15Add the private linkage.Rafael Espindola1-2/+2
llvm-svn: 62279
2008-07-28Fold the useful features of alist and alist_node into ilist, andDan Gohman1-2/+2
a new ilist_node class, and remove them. Unlike alist_node, ilist_node doesn't attempt to manage storage itself, so it avoids the associated problems, including being opaque in gdb. Adjust the Recycler class so that it doesn't depend on alist_node. Also, change it to use explicit Size and Align parameters, allowing it to work when the largest-sized node doesn't have the greatest alignment requirement. Change MachineInstr's MachineMemOperand list from a pool-backed alist to a std::list for now. llvm-svn: 54146
2008-04-01Change the MemoryBuffer::getFile* methods to take just a pointer to theChris Lattner1-3/+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
2008-04-01change the archive stuff to use MemoryBuffer instead of mappedfile.Chris Lattner1-14/+7
MemoryBuffer is higher level and more closely matches the model needed. llvm-svn: 49029
2008-04-01Remove MappedFile support for mapping files for write and execChris Lattner1-1/+1
and shared. This complicates the design, is not used, and probably doesn't even work. llvm-svn: 49022
2008-04-01add missing #includesChris Lattner1-0/+1
llvm-svn: 49020
2008-03-11Fix thinko: alias always defines new symbol. Even is aliasee itself is ↵Anton Korobeynikov1-4/+2
undefined. llvm-svn: 48203
2008-03-04Add alias with non-external aliasee to the list of exported symbols of the ↵Anton Korobeynikov1-1/+10
library. llvm-svn: 47899
2008-02-20Unbreak build with gcc 4.3: provide missed includes and silence most ↵Anton Korobeynikov1-0/+2
annoying warnings. llvm-svn: 47367
2007-12-29Remove attribution from file headers, per discussion on llvmdev.Chris Lattner1-2/+2
llvm-svn: 45418
2007-07-06eliminate residual cruft related to recognizing bytecodeGabor Greif1-8/+1
files. bitcode files are the only LLVM format left. llvm-svn: 37945
2007-07-05Here is the bulk of the sanitizing.Gabor Greif1-8/+8
Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
2007-05-06adjust this to live in lib/ArchiveChris Lattner1-0/+271
llvm-svn: 36886