summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-07-06 08:46:01 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-07-06 08:46:01 +0000
commita56702e0c66dfd1760f01ee8a83bbc30efb98861 (patch)
treec98dfb5190c342d07ba7241a7f854a20e0190407
parentc2a16a356724fe37f472fc19ebfe71443c2ae47b (diff)
downloadbcm5719-llvm-a56702e0c66dfd1760f01ee8a83bbc30efb98861.tar.gz
bcm5719-llvm-a56702e0c66dfd1760f01ee8a83bbc30efb98861.zip
[DWARF] - Provide default implementation for getSectionLoadAddress() method of LoadedObjectInfo
It is a bit unconvinent that client should implement this method even if not use it. Patch provides default implementation. Differential revision: https://reviews.llvm.org/D35009 llvm-svn: 307242
-rw-r--r--llvm/include/llvm/DebugInfo/DIContext.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/DebugInfo/DIContext.h b/llvm/include/llvm/DebugInfo/DIContext.h
index 554d749b4a7..936813dc6ab 100644
--- a/llvm/include/llvm/DebugInfo/DIContext.h
+++ b/llvm/include/llvm/DebugInfo/DIContext.h
@@ -204,7 +204,9 @@ public:
/// need to be consistent with the addresses used to query the DIContext and
/// the output of this function should be deterministic, i.e. repeated calls with
/// the same Sec should give the same address.
- virtual uint64_t getSectionLoadAddress(const object::SectionRef &Sec) const = 0;
+ virtual uint64_t getSectionLoadAddress(const object::SectionRef &Sec) const {
+ return 0;
+ }
/// If conveniently available, return the content of the given Section.
///
OpenPOWER on IntegriCloud