forked from OSchip/llvm-project
[DWARF] - Make PubIndexEntryDescriptor::toBits() to be const.
That is usefull when iterating over entries of new DWARFDebugPubTable class via DWARFDebugPubTable::getData which returns ArrayRef. llvm-svn: 290041
This commit is contained in:
parent
e71e33fe93
commit
83e0dbcaad
|
@ -423,7 +423,9 @@ struct PubIndexEntryDescriptor {
|
|||
KIND_OFFSET)),
|
||||
Linkage(static_cast<GDBIndexEntryLinkage>((Value & LINKAGE_MASK) >>
|
||||
LINKAGE_OFFSET)) {}
|
||||
uint8_t toBits() { return Kind << KIND_OFFSET | Linkage << LINKAGE_OFFSET; }
|
||||
uint8_t toBits() const {
|
||||
return Kind << KIND_OFFSET | Linkage << LINKAGE_OFFSET;
|
||||
}
|
||||
|
||||
private:
|
||||
enum {
|
||||
|
|
Loading…
Reference in New Issue