diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-09 05:26:25 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-09 05:26:25 +0000 |
commit | be6b9101d412711b69f6cfc1068efdf0ba7eb586 (patch) | |
tree | a503230c20c9fcdd86f4f73bad9afd580ced7ae0 /include | |
parent | 3d84b07f9581408d8ee9262744afd8ab02ff1821 (diff) | |
download | external_llvm-be6b9101d412711b69f6cfc1068efdf0ba7eb586.zip external_llvm-be6b9101d412711b69f6cfc1068efdf0ba7eb586.tar.gz external_llvm-be6b9101d412711b69f6cfc1068efdf0ba7eb586.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/Archive.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Object/Archive.h b/include/llvm/Object/Archive.h index 89b99b0..aac978c 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; |