llvm-6502/tools/llvm-readobj
Rafael Espindola 548f2b6e8f Don't own the buffer in object::Binary.
Owning the buffer is somewhat inflexible. Some Binaries have sub Binaries
(like Archive) and we had to create dummy buffers just to handle that. It is
also a bad fit for IRObjectFile where the Module wants to own the buffer too.

Keeping this ownership would make supporting IR inside native objects
particularly painful.

This patch focuses in lib/Object. If something elsewhere used to own an Binary,
now it also owns a MemoryBuffer.

This patch introduces a few new types.

* MemoryBufferRef. This is just a pair of StringRefs for the data and name.
  This is to MemoryBuffer as StringRef is to std::string.
* OwningBinary. A combination of Binary and a MemoryBuffer. This is needed
  for convenience functions that take a filename and return both the
  buffer and the Binary using that buffer.

The C api now uses OwningBinary to avoid any change in semantics. I will start
a new thread to see if we want to change it and how.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216002 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-19 18:44:46 +00:00
..
ARMAttributeParser.cpp
ARMAttributeParser.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
ARMEHABIPrinter.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
ARMWinEHPrinter.cpp Rephrase loop so it doesn't leave unused bools around in Release mode. 2014-07-01 14:46:44 +00:00
ARMWinEHPrinter.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
CMakeLists.txt tools: initial implementation of WoA EH decoding 2014-06-04 15:47:15 +00:00
COFFDumper.cpp Support: update DLLCharacteristics enumeration 2014-06-27 03:11:18 +00:00
ELFDumper.cpp [Mips] Support SHT_MIPS_ABIFLAGS section type flag in the llvm-readobj, 2014-07-13 15:28:54 +00:00
Error.cpp Remove unused and odd code. 2014-06-13 15:36:17 +00:00
Error.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
llvm-readobj.cpp Don't own the buffer in object::Binary. 2014-08-19 18:44:46 +00:00
llvm-readobj.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
LLVMBuild.txt
MachODumper.cpp llvm-readobj: fix MachO relocatoin printing a bit. 2014-07-04 10:57:56 +00:00
Makefile
ObjDumper.cpp
ObjDumper.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
StreamWriter.cpp
StreamWriter.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
Win64EHDumper.cpp Revert "Introduce a string_ostream string builder facilty" 2014-06-26 22:52:05 +00:00
Win64EHDumper.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00