Fix gcc 4.0 build failure, can't rely on access inside nested friended class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75891 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-07-16 02:38:28 +00:00
parent 1d92921691
commit c981da0192

View File

@ -82,6 +82,9 @@ namespace llvm {
AsmPrinterCtorTy AsmPrinterCtorFn;
public:
// getNext - Return the next registered target.
const Target *getNext() const { return Next; }
/// getName - Get the target name.
const char *getName() const { return Name; }
@ -138,7 +141,7 @@ namespace llvm {
// Iterator traversal: forward iteration only
iterator &operator++() { // Preincrement
assert(Current && "Cannot increment end iterator!");
Current = Current->Next;
Current = Current->getNext();
return *this;
}
iterator operator++(int) { // Postincrement