mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 15:33:16 +00:00
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:
parent
1d92921691
commit
c981da0192
@ -82,6 +82,9 @@ namespace llvm {
|
|||||||
AsmPrinterCtorTy AsmPrinterCtorFn;
|
AsmPrinterCtorTy AsmPrinterCtorFn;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
// getNext - Return the next registered target.
|
||||||
|
const Target *getNext() const { return Next; }
|
||||||
|
|
||||||
/// getName - Get the target name.
|
/// getName - Get the target name.
|
||||||
const char *getName() const { return Name; }
|
const char *getName() const { return Name; }
|
||||||
|
|
||||||
@ -138,7 +141,7 @@ namespace llvm {
|
|||||||
// Iterator traversal: forward iteration only
|
// Iterator traversal: forward iteration only
|
||||||
iterator &operator++() { // Preincrement
|
iterator &operator++() { // Preincrement
|
||||||
assert(Current && "Cannot increment end iterator!");
|
assert(Current && "Cannot increment end iterator!");
|
||||||
Current = Current->Next;
|
Current = Current->getNext();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
iterator operator++(int) { // Postincrement
|
iterator operator++(int) { // Postincrement
|
||||||
|
Loading…
Reference in New Issue
Block a user