[llvm-symbolizer] Make --relative-address work with DWARF contexts
[oota-llvm.git] / tools / llvm-symbolizer / LLVMSymbolize.h
index b52c76036e14d1a5863aa422447f49f3d39be7d2..00a3860eacb955b82f819034b4b115eb933d1db8 100644 (file)
@@ -117,6 +117,10 @@ public:
   // Return true if this is a 32-bit x86 PE COFF module.
   bool isWin32Module() const;
 
+  // Returns the preferred base of the module, i.e. where the loader would place
+  // it in memory assuming there were no conflicts.
+  uint64_t getModulePreferredBase() const;
+
 private:
   bool getNameFromSymbolTable(SymbolRef::Type Type, uint64_t Address,
                               std::string &Name, uint64_t &Addr,