summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-09 05:26:25 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-09 05:26:25 +0000
commitbe6b9101d412711b69f6cfc1068efdf0ba7eb586 (patch)
treea503230c20c9fcdd86f4f73bad9afd580ced7ae0 /include
parent3d84b07f9581408d8ee9262744afd8ab02ff1821 (diff)
downloadllvm-be6b9101d412711b69f6cfc1068efdf0ba7eb586.tar.gz
llvm-be6b9101d412711b69f6cfc1068efdf0ba7eb586.tar.bz2
llvm-be6b9101d412711b69f6cfc1068efdf0ba7eb586.tar.xz
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.h4
1 files changed, 2 insertions, 2 deletions
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;