mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
DIBuilder: Make header iterator constructor explicit, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
db5a7969ce
commit
770bfec9f0
@ -66,7 +66,7 @@ class DIHeaderFieldIterator
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
DIHeaderFieldIterator() {}
|
DIHeaderFieldIterator() {}
|
||||||
DIHeaderFieldIterator(StringRef Header)
|
explicit DIHeaderFieldIterator(StringRef Header)
|
||||||
: Header(Header), Current(Header.slice(0, Header.find('\0'))) {}
|
: Header(Header), Current(Header.slice(0, Header.find('\0'))) {}
|
||||||
StringRef operator*() const { return Current; }
|
StringRef operator*() const { return Current; }
|
||||||
const StringRef * operator->() const { return &Current; }
|
const StringRef * operator->() const { return &Current; }
|
||||||
@ -200,8 +200,10 @@ public:
|
|||||||
DIHeaderFieldIterator());
|
DIHeaderFieldIterator());
|
||||||
}
|
}
|
||||||
|
|
||||||
DIHeaderFieldIterator header_begin() const { return getHeader(); }
|
DIHeaderFieldIterator header_begin() const {
|
||||||
DIHeaderFieldIterator header_end() const { return StringRef(); }
|
return DIHeaderFieldIterator(getHeader());
|
||||||
|
}
|
||||||
|
DIHeaderFieldIterator header_end() const { return DIHeaderFieldIterator(); }
|
||||||
|
|
||||||
DIHeaderFieldIterator getHeaderIterator(unsigned Index) const {
|
DIHeaderFieldIterator getHeaderIterator(unsigned Index) const {
|
||||||
// Since callers expect an empty string for out-of-range accesses, we can't
|
// Since callers expect an empty string for out-of-range accesses, we can't
|
||||||
|
Loading…
x
Reference in New Issue
Block a user