From a4459feca415a757fa0ca3ab4731a17240931a81 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 23 Oct 2020 11:46:45 -0700 Subject: [PATCH] [lldb] Fix use of undefined type 'lldb_private::UtilityFunction' We were returning the default constructed unique_pointer from TypeSystem.h for which the compiler does not have a definition. Move the implementation into the cpp file. --- lldb/include/lldb/Symbol/TypeSystem.h | 4 +--- lldb/source/Symbol/TypeSystem.cpp | 19 ++++++++----------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/lldb/include/lldb/Symbol/TypeSystem.h b/lldb/include/lldb/Symbol/TypeSystem.h index d555955..b6bebed 100644 --- a/lldb/include/lldb/Symbol/TypeSystem.h +++ b/lldb/include/lldb/Symbol/TypeSystem.h @@ -466,9 +466,7 @@ public: } virtual std::unique_ptr - CreateUtilityFunction(std::string text, std::string name) { - return {}; - } + CreateUtilityFunction(std::string text, std::string name); virtual PersistentExpressionState *GetPersistentExpressionState() { return nullptr; diff --git a/lldb/source/Symbol/TypeSystem.cpp b/lldb/source/Symbol/TypeSystem.cpp index 9850659..2adf36f 100644 --- a/lldb/source/Symbol/TypeSystem.cpp +++ b/lldb/source/Symbol/TypeSystem.cpp @@ -6,22 +6,14 @@ // //===----------------------------------------------------------------------===// -// -// TypeSystem.cpp -// lldb -// -// Created by Ryan Brown on 3/29/15. -// -// - #include "lldb/Symbol/TypeSystem.h" - -#include - #include "lldb/Core/PluginManager.h" +#include "lldb/Expression/UtilityFunction.h" #include "lldb/Symbol/CompilerType.h" #include "lldb/Target/Language.h" +#include + using namespace lldb_private; using namespace lldb; @@ -179,6 +171,11 @@ TypeSystem::DeclContextFindDeclByName(void *opaque_decl_ctx, ConstString name, return std::vector(); } +std::unique_ptr +TypeSystem::CreateUtilityFunction(std::string text, std::string name) { + return {}; +} + #pragma mark TypeSystemMap TypeSystemMap::TypeSystemMap() -- 2.7.4