From be6b9101d412711b69f6cfc1068efdf0ba7eb586 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 9 Jul 2013 05:26:25 +0000 Subject: Compute the size of an archive member in the constructor. It is always computed the same way (by parsing the header). Doing it in the constructor simplifies the callers a bit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185905 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/Archive.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/llvm/Object/Archive.h b/include/llvm/Object/Archive.h index 89b99b0d8f..aac978c65d 100644 --- a/include/llvm/Object/Archive.h +++ b/include/llvm/Object/Archive.h @@ -51,7 +51,7 @@ public: uint16_t StartOfFile; public: - Child(const Archive *p, StringRef d); + Child(const Archive *Parent, const char *Start); bool operator ==(const Child &other) const { return (Parent == other.Parent) && (Data.begin() == other.Data.begin()); @@ -81,7 +81,7 @@ public: class child_iterator { Child child; public: - child_iterator() : child(Child(0, StringRef())) {} + child_iterator() : child(Child(0, 0)) {} child_iterator(const Child &c) : child(c) {} const Child* operator->() const { return &child; -- cgit v1.2.3