mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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;
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user