History log of /external/llvm/lib/Archive/ArchiveReader.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
651e800defafb14ffb7905b9efa8423f1f5c215b 06-Sep-2012 Roman Divacky <rdivacky@freebsd.org> Mark checkSignature const, and in turn stop casting away const from
ArchiveMemberHeader. Found by gcc48 -Wcast-qual.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163255 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
94bc246a8b2fd0ef371c8f3846ac9a5a367ed9ab 10-Aug-2012 Rafael Espindola <rafael.espindola@gmail.com> Remove references to compression in llvm-ar. It has been a long time since we
switched from a bytecode+bzip2 to the current bitcode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161651 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
901b85888c2de6bf982c47ab69b7e83908b6a216 23-Mar-2012 Benjamin Kramer <benny.kra@googlemail.com> Include cstdio in a few place that depended on getting it transitively through StringExtras.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153328 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
4254df306268edb7f47a77eecd1f8b59f1b17fe0 23-Jan-2012 Rafael Espindola <rafael.espindola@gmail.com> Avoid using an invalidated iterator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148681 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
603d6b56a2b72358e7b599aab743beb44823d76c 23-Jan-2012 Rafael Espindola <rafael.espindola@gmail.com> The iteration order over a std::set<Module*> depends on the addresses of the
modules. Avoid that to make the order the linker sees the modules deterministic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148676 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
73382423f2b1f4735941dcffff2f31d0c25876b4 25-Apr-2010 Chris Lattner <sabre@nondot.org> silence a warning, patch by "mike".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102297 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
9d44e702725a534c8e80edce52c7e71f71f37c06 19-Apr-2010 Benjamin Kramer <benny.kra@googlemail.com> Don't write into MemoryBuffers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101783 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
dfd4bbfdfba518f194f4795dfc963dfa456d0246 19-Apr-2010 Dan Gohman <gohman@apple.com> Fix -Wcast-qual warnings.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101779 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
463330684406c9d2fe2e9d7078c54b9d9f06dd52 04-Feb-2010 Chris Lattner <sabre@nondot.org> From PR6228:

"Attached patch removes the extra NUL bytes from the output and changes
test/Archive/MacOSX.toc from a binary to a text file (removes
svn:mime-type=application/octet-stream and adds svn:eol-style=native). I can't
figure out how to get SVN to include the new contents of the file in the patch
so I'm attaching it separately."

Patch by James Abbatiello!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95292 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
f0356fe140af1a30587b9a86bcfb1b2c51b8ce20 27-Jan-2010 Jeffrey Yasskin <jyasskin@google.com> Kill ModuleProvider and ghost linkage by inverting the relationship between
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94686 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
74382b7c699120fbec5cb5603c9cf4212eb37f06 24-Aug-2009 Chris Lattner <sabre@nondot.org> Prune #includes from llvm/Linker.h and llvm/System/Path.h,
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.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79869 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
4434ed44c45c87a72b7a0bf2f91211f895022b91 02-Jul-2009 Owen Anderson <resistor@mac.com> Make the use of const with respect to LLVMContext sane. Hopefully this is the last time, for the
moment, that I will need to make far-reaching changes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74655 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
31895e73591d3c9ceae731a1274c8f56194b9616 01-Jul-2009 Owen Anderson <resistor@mac.com> Hold the LLVMContext by reference rather than by pointer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74640 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
8b477ed579794ba6d76915d56b3f448a7dd20120 01-Jul-2009 Owen Anderson <resistor@mac.com> Add a pointer to the owning LLVMContext to Module. This requires threading 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74614 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
d68a07650cdb2e18f18f362ba533459aa10e01b6 05-Jan-2009 Dan Gohman <gohman@apple.com> Tidy up #includes, deleting a bunch of unnecessary #includes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61715 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
fed90b6d097d50881afb45e4d79f430db66dd741 28-Jul-2008 Dan Gohman <gohman@apple.com> Fold the useful features of alist and alist_node into ilist, and
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54146 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
844731a7f1909f55935e3514c9e713a62d67662e 13-May-2008 Dan Gohman <gohman@apple.com> Clean up the use of static and anonymous namespaces. This turned up
several things that were neither in an anonymous namespace nor static
but not intended to be global.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51017 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
7f6b4479044e7f6553f517737caa18e4e543697c 01-Apr-2008 Chris Lattner <sabre@nondot.org> change the archive stuff to use MemoryBuffer instead of mappedfile.
MemoryBuffer is higher level and more closely matches the model
needed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49029 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
0838923afb7eadd433694a9d2f0330040e5b36b5 01-Apr-2008 Chris Lattner <sabre@nondot.org> add missing #includes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49020 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
303595942502f17c087fa28874c2b89117148c45 29-Jan-2008 Dan Gohman <gohman@apple.com> Use empty() instead of comparing size() with zero.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46514 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
4ee451de366474b9c228b4e5fa573795a715216d 29-Dec-2007 Chris Lattner <sabre@nondot.org> Remove attribution from file headers, per discussion on llvmdev.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45418 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
db5565a1f549a979c84e559e18863f4c1d8f884f 06-Jul-2007 Gabor Greif <ggreif@gmail.com> finishing touches of bytecode -> bitcode changes. also unbreak Windows

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37950 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
e75ca3d809ff17260efa320a949cb91ea2b3981e 06-Jul-2007 Gabor Greif <ggreif@gmail.com> eliminate residual cruft related to recognizing bytecode
files.
bitcode files are the only LLVM format left.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37945 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
a99be51bf5cdac1438069d4b01766c47704961c8 05-Jul-2007 Gabor Greif <ggreif@gmail.com> Here is the bulk of the sanitizing.
Almost all occurrences of "bytecode" in the sources have been eliminated.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37913 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
c1d5624d71f7534cfc1bd51b76ead9cea99d3e8d 06-May-2007 Chris Lattner <sabre@nondot.org> Switch this over to bitcode instead of bytecode.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36866 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
e07c15c734fcac9f6a82ae20a93b18799d6ca992 06-May-2007 Chris Lattner <sabre@nondot.org> add bitcode support


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36856 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
20c348978ea0d3ec7177fab801d619ccbe7d815f 04-Apr-2007 Reid Spencer <rspencer@reidspencer.com> For PR1302:
Adjust useage of sys::Path::FileType for new enumerator names.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35651 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
f2e292ce58ca07d9bbe3cad75f8baa35bd85964a 07-Feb-2007 Chris Lattner <sabre@nondot.org> push bytecode decompressor out through APIs. Now the bytecode reader
api's look like this:

ModuleProvider *getBytecodeModuleProvider(
const std::string &Filename, ///< Name of file to be read
BCDecompressor_t *BCDC = Compressor::decompressToNewBuffer,
std::string* ErrMsg = 0, ///< Optional error message holder
BytecodeHandler* H = 0 ///< Optional handler for reader events
);

This is ugly, but allows a client to say:

getBytecodeModuleProvider("foo", 0);

If they do this, there is no dependency on the compression libraries, saving
codesize.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34012 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
cd5561a56e1521c7dc18744dcd371d255b580fdf 15-Dec-2006 Reid Spencer <rspencer@reidspencer.com> For PR1050:
Convert asserts into error messages.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32607 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
0b5a504d105514178c80b886321221fbe5ac1131 25-Aug-2006 Reid Spencer <rspencer@reidspencer.com> For PR797:
Remove exception throwing/handling from lib/Bytecode, and adjust its users
to compensate for changes in the interface.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29875 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
0ff2d31766209ce1a69d4d2c5d35761ef57362aa 25-Aug-2006 Reid Spencer <rspencer@reidspencer.com> For PR797:
Remove exception handling from the bytecode archiver and adjust the llvm-ar
tool to accommodate the new interfaces.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29866 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
8d8a7ffe580c622e7e43f1426bca64e517de0d06 07-Jul-2006 Reid Spencer <rspencer@reidspencer.com> Finish removal of EH usage from the Archive library. The REQUIRES_EH flag
in lib/Bytecode/Archive/Makefile is now removed. One small step closer to
a smaller LLVM.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29067 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
ffb4d62720f491614801668acda2f89a4f878d98 12-May-2006 Reid Spencer <rspencer@reidspencer.com> When reading the symbol table, make sure to delete the ArchiveMember
created by reading the symbol table.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28251 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
874874657eea1d50062a973321ab256d8e761496 26-Dec-2005 Duraid Madina <duraid@octopus.com.au> more C++ daintiness


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25023 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
7c439929bcdc7e64705da5cea8fa41c6ac7a07f7 23-Sep-2005 Chris Lattner <sabre@nondot.org> speed up Archive::isBytecodeArchive in the case when the archive doesn't have
an llvm-ranlib symtab. This speeds up gccld -native on an almost empty .o file
from 1.63s to 0.18s.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23406 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
dd04df0ec33a903ee7fc747701bafde622f77d8b 08-Jul-2005 Reid Spencer <rspencer@reidspencer.com> For PR495:
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22349 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
2b37d7cf28b1382420b5e4007042feeb66d21ac8 21-Apr-2005 Misha Brukman <brukman+llvm@gmail.com> Remove trailing whitespace


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21416 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
eaa06bb9792f14628402da55caa554965f25e49c 26-Feb-2005 Reid Spencer <rspencer@reidspencer.com> Implement an isBytecodeArchive method to determine if an archive contains
bytecode file members or not.
Patch Contributed By Adam Treat


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20338 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
56127624e7b31c1c2477b10fae207f2991eeb72c 29-Dec-2004 Reid Spencer <rspencer@reidspencer.com> Remove potential platform portability issue with size of "int".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19172 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
e1337210475d13ed44eb3c9e4dceaf0781e126f4 20-Dec-2004 Jeff Cohen <jeffc@jolt-lang.org> Fix problems uncovered by VC++ (first time compiled by VC++)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19056 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
518ec2ea1f6ad48471e78cb6cfd56ac04767aadb 13-Dec-2004 Reid Spencer <rspencer@reidspencer.com> Make sure the Archive gets deleted if there's an error.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18869 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
5af46883f27eb66ada1ca01e011e80bfb838f08e 13-Dec-2004 Reid Spencer <rspencer@reidspencer.com> Implement error handling in OpenAndLoad* functions so the Linker can handle it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18853 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
1fce09125cb46c91407668ca29915c450a482811 11-Dec-2004 Reid Spencer <rspencer@reidspencer.com> Path::get -> Path::toString


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18785 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
8dde18fc505c438041987a540977a240f258332e 28-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Compute the firstFileOffset correctly after reading the LLVM symbol table.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18300 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
84b9cedf913c0cc16ec9f3b6f349924a4a8561b0 23-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Allow reading of member names that begin with an _ character.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18179 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
9a29db43a7a906162b0fde012b5d16f3b0895023 20-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Distinguish between BSD4.4 and SVR4 symbol tables


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18044 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
6405c9ec9f76fd9b8a3b35d2408a74485dc5d00a 19-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Correct the computation of when to add the padding. It is not based on the
member's size. It is based on the oddness/evenness of the file pointer.
This fixes a bug with llvm-ar not being able to read archives produced by
llvm-ranlib when there are members with odd long file name lengths.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17997 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
57646ec44eb2ff59b99c3b5e4fe0e5084462b2f3 19-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Don't save an iterator, just use post-increment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17981 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
7783e8ad69a2ac14ba50f6b015806b48c4131240 19-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Make findModulesDefiningSymbols modify its symbols argument so we can \
eliminate symbols defined by the archive efficiently


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17976 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
6ab7a4f9ef212ef6824677d0de84189c1233e56a 17-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Make sure we parse bytecode with a module identifier that reflects the full
name of the module: "Archive.a(object.o)"


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17917 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
dd95e8d71ec04cc91796c008773cd237a4ed107e 17-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Despite documentation to the contrary, Mac OSX and BSD 4.4 archive formats
*do* include the length of the long file in the length of the member and
they are *not* null terminated.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17909 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
4a980d181332cd42228d7432cb5fb6bbb1f0b071 16-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Per code review:\
* Make sure we write out the foreign symbol table if we read one \
* Make the padding calculation more efficiently and avoid Solaris warnings


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17883 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
b323113b93a14f8032e060b5d05a39c2242e4acc 15-Nov-2004 Reid Spencer <rspencer@reidspencer.com> * Make sure the string table gets read even if there isn't a foreign
symbol table.
* Make sure we update the file pointer for each member when rebuilding the
symbol table.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17812 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
766b793143fa863283498233e8962391da09b63a 15-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Changes necessary to enable linking of archives without LLVM symbol tables.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17811 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
f9d7a51c4458680a8fd0c69ef06485ac1d11862a 14-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Completely rewritten to allow reading of archives and symbol table lookup in a more efficient manner.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17767 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
9577667822ebc87c69cd3d6a19fe1d179d3ddf88 14-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Moved to lib/Bytecode/Archive in preparation for re-write.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17742 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
b5810282eedb7ca8896f1159c714eec217490372 09-Nov-2004 John Criswell <criswell@uiuc.edu> Recognize compressed LLVM bytecode files.
This should fix the problem of not being able to link compressed LLVM
bytecode files from LLVM libraries.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17648 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
551ccae044b0ff658fe629dd67edd5ffe75d10e8 02-Sep-2004 Reid Spencer <rspencer@reidspencer.com> Changes For Bug 352
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/.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
77cf296c5dbacc5d213ba7d48954be2963008415 04-Jul-2004 Reid Spencer <rspencer@reidspencer.com> Add #include <iostream> which is needed now that Value.h doesn't include it


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14600 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
fb777c270bac4b95b739dad552c5ab8f5aa2aef4 28-May-2004 Chris Lattner <sabre@nondot.org> Use the new FileUtilities.h API for mapping a file into an address
space


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13864 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
60d6e54c72ceb173a6de119ee44d1b9694380e78 31-Mar-2004 Brian Gaeke <gaeke@uiuc.edu> Use the true, decoded name of the archive member in getObjectType.

In ReadArchiveBuffer, make sure that MemberName is set in the case where
getObjectType would want to return SVR4LongFilename.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12567 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
3446ae833754df5b139d056de025797dbacc10e5 10-Jan-2004 Chris Lattner <sabre@nondot.org> * finegrainify namespacification of ArchiveReader.cpp
* Refactor reader stuff out of include/llvm/Bytecode/Primitives.h. This is
internal implementation details for the reader, not public interfaces!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10739 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
b70abe1c5adaf26e8d73d9aa4e5c76ed830cc94e 30-Dec-2003 Chris Lattner <sabre@nondot.org> Use new getFileSize function instead of sys/stat.h directly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10650 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
9059158b5613f9d87d2571ea67cef83d5f879106 22-Dec-2003 John Criswell <criswell@uiuc.edu> Reverted back to revision 1.11. The previous fix doesn't really fix
anything; it just causes the bug to go dormant.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10585 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
1118d0fd945eb2430dace89b7df7b1cf60f149f3 20-Dec-2003 John Criswell <criswell@uiuc.edu> Fix PR#193.

Modified ReadArchiveBuffer() so that it dynamically allocates the
std::string object used to hold the bytecode object file's name. This is
necessary because it is passed by reference to the new Module that is
allocated to represent the bytecode object, and previously we were
using a std::string that disappeared on function exit.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10565 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
6ca5b8f5f42fbfa78abe874e49ae20f28b9bd583 17-Dec-2003 Brian Gaeke <gaeke@uiuc.edu> Make getObjectType() smarter about ranlibbed Mac OS X archives.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10493 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
3c0963658820a2e254e00b229fff2b7654aff3e4 11-Dec-2003 Brian Gaeke <gaeke@uiuc.edu> In getObjectType(), doxygenify comment, and take a pointer to the
beginning of the archive member data as an argument.

Get rid of ParseLongFilenameSection(), which is dead.

In ReadArchiveBuffer(), implement support for 4.4BSD/MacOSX long filenames.
This is kind of invasive, because they prepend the long filename to the archive
member data, and then lie about the size. So we have to keep track of the real
size.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10392 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
2c61d7b240f41dcc3f7a7e4966dc80b804918bc9 17-Nov-2003 Brian Gaeke <gaeke@uiuc.edu> Implement skeletal support for __.SYMDEF (ranlib) sections in archives.
Correctly parse the Long Filename section of the archive.
When reading in archive members, set their ModuleIDs to
"ARCHIVENAME(MEMBERNAME)", as is traditional.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10043 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
d0fde30ce850b78371fd1386338350591f9ff494 11-Nov-2003 Brian Gaeke <gaeke@uiuc.edu> Put all LLVM code into the llvm namespace, as per bug 109.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
b576c94c15af9a440f69d9d03c2afead7971118c 20-Oct-2003 John Criswell <criswell@uiuc.edu> Added LLVM project notice to the top of every C++ source file.
Header files will be on the way.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
23219d1dcbf1553a1cdc2155610965b07d26f531 23-Sep-2003 Chris Lattner <sabre@nondot.org> Update file header for renamed file


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8673 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
37f92e25689bacd2308c92f33d01163478cf5ad1 12-Sep-2003 Misha Brukman <brukman+llvm@gmail.com> Fixed spelling and grammar.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8489 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
7a73b80b9052136c8cd2234eb3433a07df7cf38e 30-Jun-2003 John Criswell <criswell@uiuc.edu> Merged in autoconf branch. This provides configuration via the autoconf
system.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7014 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
09ff1509ba077cfd702c64a51a433798d23567b2 23-Apr-2003 Misha Brukman <brukman+llvm@gmail.com> Fixed 'prevalent'.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5860 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
75f20532ec768308767328a1234cbea38d115e6a 22-Apr-2003 Chris Lattner <sabre@nondot.org> Preserve module source information in the ModuleID


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5836 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp
968cfd0b6e5aa4eac98c748fafd145889b4c7b83 19-Apr-2003 Chris Lattner <sabre@nondot.org> Initial support for reading standard .a files


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5820 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Archive/ArchiveReader.cpp