mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-05 10:57:32 +00:00
[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
This commit is contained in:
parent
cf625ba818
commit
926f9d77ec
@ -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.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user