[PATCH] D35009: [DWARF] - Provide default implementations for methods of LoadedObjectInfo

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 01:46:23 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL307242: [DWARF] - Provide default implementation for getSectionLoadAddress() method of… (authored by grimar).

Changed prior to commit:
  https://reviews.llvm.org/D35009?vs=105255&id=105384#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D35009

Files:
  llvm/trunk/include/llvm/DebugInfo/DIContext.h


Index: llvm/trunk/include/llvm/DebugInfo/DIContext.h
===================================================================
--- llvm/trunk/include/llvm/DebugInfo/DIContext.h
+++ llvm/trunk/include/llvm/DebugInfo/DIContext.h
@@ -204,7 +204,9 @@
   /// 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.
   ///


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35009.105384.patch
Type: text/x-patch
Size: 725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170706/1c294177/attachment.bin>


More information about the llvm-commits mailing list