summaryrefslogtreecommitdiffstats
path: root/llvm/tools/dsymutil/BinaryHolder.h
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2017-10-13 14:41:23 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2017-10-13 14:41:23 +0000
commit614fab4bd89085b9f10253924b671ec2f650fae1 (patch)
tree44410f892ec888a929c9e8645a1ea32e6208743b /llvm/tools/dsymutil/BinaryHolder.h
parenta2ca9020334dedc0ffe2be40f68c1c248a38771c (diff)
downloadbcm5719-llvm-614fab4bd89085b9f10253924b671ec2f650fae1.tar.gz
bcm5719-llvm-614fab4bd89085b9f10253924b671ec2f650fae1.zip
Re-land "[dsymutil] Timestmap verification for __swift_ast"
This patch adds timestamp verification for swiftmodule files. A new flag is provided to allows us to disable this check in order to allow testing of this feature. Differential revision: https://reviews.llvm.org/D38686 llvm-svn: 315684
Diffstat (limited to 'llvm/tools/dsymutil/BinaryHolder.h')
-rw-r--r--llvm/tools/dsymutil/BinaryHolder.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/dsymutil/BinaryHolder.h b/llvm/tools/dsymutil/BinaryHolder.h
index f4ca0b2bc3a..5b2061d23aa 100644
--- a/llvm/tools/dsymutil/BinaryHolder.h
+++ b/llvm/tools/dsymutil/BinaryHolder.h
@@ -66,12 +66,6 @@ class BinaryHolder {
MapArchiveAndGetMemberBuffers(StringRef Filename,
sys::TimePoint<std::chrono::seconds> Timestamp);
- void changeBackingMemoryBuffer(std::unique_ptr<MemoryBuffer> &&MemBuf);
- ErrorOr<const object::ObjectFile &> getObjfileForArch(const Triple &T);
-
-public:
- BinaryHolder(bool Verbose) : Verbose(Verbose) {}
-
/// Return the MemoryBufferRef that holds the memory mapping for the
/// given \p Filename. This function will try to parse archive
/// member specifications of the form /path/to/archive.a(member.o).
@@ -85,6 +79,12 @@ public:
GetMemoryBuffersForFile(StringRef Filename,
sys::TimePoint<std::chrono::seconds> Timestamp);
+ void changeBackingMemoryBuffer(std::unique_ptr<MemoryBuffer> &&MemBuf);
+ ErrorOr<const object::ObjectFile &> getObjfileForArch(const Triple &T);
+
+public:
+ BinaryHolder(bool Verbose) : Verbose(Verbose) {}
+
/// Get the ObjectFiles designated by the \p Filename. This
/// might be an archive member specification of the form
/// /path/to/archive.a(member.o).
OpenPOWER on IntegriCloud