[lldb] Add comments to describe m_memory_addr and IsInMemory
authorAugusto Noronha <augusto2112@me.com>
Thu, 7 Jul 2022 19:05:30 +0000 (12:05 -0700)
committerAugusto Noronha <augusto2112@me.com>
Thu, 7 Jul 2022 20:11:50 +0000 (13:11 -0700)
Differential Revision: https://reviews.llvm.org/D129319

lldb/include/lldb/Symbol/ObjectFile.h

index c61e3c1..e51d505 100644 (file)
@@ -673,6 +673,7 @@ public:
   virtual size_t ReadSectionData(Section *section,
                                  DataExtractor &section_data);
 
+  /// Returns true if the object file exists only in memory.
   bool IsInMemory() const { return m_memory_addr != LLDB_INVALID_ADDRESS; }
 
   // Strip linker annotations (such as @@VERSION) from symbol names.
@@ -736,6 +737,7 @@ protected:
   DataExtractor
       m_data; ///< The data for this object file so things can be parsed lazily.
   lldb::ProcessWP m_process_wp;
+  /// Set if the object file only exists in memory.
   const lldb::addr_t m_memory_addr;
   std::unique_ptr<lldb_private::SectionList> m_sections_up;
   std::unique_ptr<lldb_private::Symtab> m_symtab_up;