summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-12-17 10:15:39 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-12-17 10:15:39 +0000
commit83e0dbcaadab1cb9984c5fa15e26690444be57b5 (patch)
treee268371c02cf73ad12212caf6da31f682753a5b3
parente71e33fe9343f0f1064bcd97cb21bb36dd2fd7c6 (diff)
downloadbcm5719-llvm-83e0dbcaadab1cb9984c5fa15e26690444be57b5.tar.gz
bcm5719-llvm-83e0dbcaadab1cb9984c5fa15e26690444be57b5.zip
[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
-rw-r--r--llvm/include/llvm/Support/Dwarf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Dwarf.h b/llvm/include/llvm/Support/Dwarf.h
index a7c77ffcac3..1a984037da0 100644
--- a/llvm/include/llvm/Support/Dwarf.h
+++ b/llvm/include/llvm/Support/Dwarf.h
@@ -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 {
OpenPOWER on IntegriCloud