[llvm] [GSYM] Add support for querying merged functions in llvm-gsymutil (PR #120991)

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 10:35:14 PST 2025


================
@@ -50,6 +51,17 @@ struct LookupResult {
   /// array, and the concrete function will appear at the end of the array.
   SourceLocations Locations;
   std::string getSourceFile(uint32_t Index) const;
+
+  /// Optional DataExtractor containing the merged functions data.
+  /// This is only populated during lookups if merged function information
+  /// was present. This is an optimization to avoid parsing the
+  /// MergedFunctionsInfo data unless needed.
+  std::optional<DataExtractor> MergedFunctionsData;
+
+  /// The binary data used to decode the FunctionInfo from which this
+  /// LookupResult was created. This can be used to re-decode the entire
+  /// FunctionInfo if desired.
+  std::optional<DataExtractor> FunctionInfoData;
 };
----------------
clayborg wrote:

Lets remove this, and if we are printing verbose lookup results, we will just dump the top level function info that will also dump all merged function infos. The reason is the verbose mode is mainly for developers.

https://github.com/llvm/llvm-project/pull/120991


More information about the llvm-commits mailing list