[Lldb-commits] [lldb] cec93c6 - [lldb] SymbolFileJSON: Update outdates Text -> JSON (NFC)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 3 14:29:59 PDT 2023
Author: Jonas Devlieghere
Date: 2023-07-03T14:28:02-07:00
New Revision: cec93c6589fe6e6fab99aa5c11819ff841a469b2
URL: https://github.com/llvm/llvm-project/commit/cec93c6589fe6e6fab99aa5c11819ff841a469b2
DIFF: https://github.com/llvm/llvm-project/commit/cec93c6589fe6e6fab99aa5c11819ff841a469b2.diff
LOG: [lldb] SymbolFileJSON: Update outdates Text -> JSON (NFC)
Originally the symbol file format was going to textual, before we
decided to use JSON. Updated the plugin name and the header guard.
Added:
Modified:
lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.cpp
lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.h
Removed:
################################################################################
diff --git a/lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.cpp b/lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.cpp
index f10ff59f3186d6..1f3ca27417e4ab 100644
--- a/lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.cpp
+++ b/lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.cpp
@@ -48,7 +48,7 @@ void SymbolFileJSON::Terminate() {
}
llvm::StringRef SymbolFileJSON::GetPluginDescriptionStatic() {
- return "Reads debug symbols from a textual symbol table.";
+ return "Reads debug symbols from a JSON symbol table.";
}
SymbolFile *SymbolFileJSON::CreateInstance(ObjectFileSP objfile_sp) {
diff --git a/lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.h b/lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.h
index 1fc41c739c027e..4dd0d65da46583 100644
--- a/lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.h
+++ b/lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.h
@@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_JSON_SYMBOLFILETEXT_H
-#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_JSON_SYMBOLFILETEXT_H
+#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_JSON_SYMBOLFILEJSON_H
+#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_JSON_SYMBOLFILEJSON_H
#include <map>
#include <optional>
@@ -37,7 +37,7 @@ class SymbolFileJSON : public lldb_private::SymbolFileCommon {
static void Terminate();
- static llvm::StringRef GetPluginNameStatic() { return "text"; }
+ static llvm::StringRef GetPluginNameStatic() { return "JSON"; }
static llvm::StringRef GetPluginDescriptionStatic();
@@ -107,4 +107,4 @@ class SymbolFileJSON : public lldb_private::SymbolFileCommon {
};
} // namespace lldb_private
-#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_JSON_SYMBOLFILETEXT_H
+#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_JSON_SYMBOLFILEJSON_H
More information about the lldb-commits
mailing list