]> granicus.if.org Git - llvm/commitdiff
[DWARF] - Provide default implementation for getSectionLoadAddress() method of Loaded...
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 6 Jul 2017 08:46:01 +0000 (08:46 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 6 Jul 2017 08:46:01 +0000 (08:46 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307242 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/DIContext.h

index 554d749b4a70b40c82c0d502f51cb47daa8ea3b1..936813dc6abc072e1f177df0b171dba48c9d5317 100644 (file)
@@ -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.
   ///