From cec93c6589fe6e6fab99aa5c11819ff841a469b2 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 28 Jun 2023 10:48:00 -0700 Subject: [PATCH] [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. --- lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.cpp | 2 +- lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.cpp b/lldb/source/Plugins/SymbolFile/JSON/SymbolFileJSON.cpp index f10ff59..1f3ca27 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 1fc41c7..4dd0d65 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 #include @@ -37,7 +37,7 @@ public: static void Terminate(); - static llvm::StringRef GetPluginNameStatic() { return "text"; } + static llvm::StringRef GetPluginNameStatic() { return "JSON"; } static llvm::StringRef GetPluginDescriptionStatic(); @@ -107,4 +107,4 @@ private: }; } // namespace lldb_private -#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_JSON_SYMBOLFILETEXT_H +#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_JSON_SYMBOLFILEJSON_H -- 2.7.4