aboutsummaryrefslogtreecommitdiffstats
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)
downloadexternal_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.h4
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;