summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFContext.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-05 21:26:44 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-04-05 21:26:44 +0000
commitb206103abcf358453ac4ed8d4373f44f4c88e5c0 (patch)
tree7cea7cb470eedc4aafa8579122e25dc4a0e0357d /lib/DebugInfo/DWARFContext.h
parent48ee81c6798a415bc592255f385bdb8427b9ebcf (diff)
downloadllvm-b206103abcf358453ac4ed8d4373f44f4c88e5c0.tar.gz
llvm-b206103abcf358453ac4ed8d4373f44f4c88e5c0.tar.bz2
llvm-b206103abcf358453ac4ed8d4373f44f4c88e5c0.tar.xz
Simplify compression API by decompressing into a SmallVector rather than a MemoryBuffer
This avoids an extra copy during decompression and avoids the use of MemoryBuffer which is a weirdly esoteric device that includes unrelated concepts like "file name" (its rather generic name is a bit misleading). Similar refactoring of zlib::compress coming up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFContext.h')
-rw-r--r--lib/DebugInfo/DWARFContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARFContext.h b/lib/DebugInfo/DWARFContext.h
index ad6841ae9e..6d1ae921ce 100644
--- a/lib/DebugInfo/DWARFContext.h
+++ b/lib/DebugInfo/DWARFContext.h
@@ -242,7 +242,7 @@ class DWARFContextInMemory : public DWARFContext {
StringRef RangeDWOSection;
StringRef AddrSection;
- SmallVector<std::unique_ptr<MemoryBuffer>, 4> UncompressedSections;
+ SmallVector<SmallString<32>, 4> UncompressedSections;
public:
DWARFContextInMemory(object::ObjectFile *);