Disallow Archive::child_iterator that don't point to an archive.

NFC, just less error prone.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-07-08 22:15:07 +00:00
parent 5ebb47fa90
commit bf4296f2c0
5 changed files with 6 additions and 7 deletions

View File

@@ -24,14 +24,14 @@ class NewArchiveIterator {
bool IsNewMember;
StringRef Name;
union {
object::Archive::child_iterator OldI;
StringRef NewFilename;
};
public:
NewArchiveIterator(object::Archive::child_iterator I, StringRef Name);
NewArchiveIterator(StringRef I, StringRef Name);
NewArchiveIterator();
bool isNewMember() const;
StringRef getName() const;