1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Revert part of "Disallow Archive::child_iterator that don't point to an archive."

This reverts parts of commit r241747. MSVC doesn't like it.

llvm-svn: 241753
This commit is contained in:
Rafael Espindola 2015-07-08 22:41:41 +00:00
parent 806e80e796
commit 3eb81c15a2
2 changed files with 2 additions and 2 deletions

View File

@ -109,6 +109,7 @@ public:
Child child;
public:
child_iterator() : child(Child(nullptr, nullptr)) {}
child_iterator(const Child &c) : child(c) {}
const Child *operator->() const { return &child; }
const Child &operator*() const { return child; }

View File

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