From 8ca7f327ff2e317ff47dcd8c793a162ab6aacd6b Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 31 Oct 2019 13:10:45 +0100 Subject: [PATCH] Remove unused parameter in ClangASTContext::CreateInstance Also restores the formatting we use upstream to fully get rid of this downstream change. --- lldb/include/lldb/Symbol/ClangASTContext.h | 4 +--- lldb/source/Symbol/ClangASTContext.cpp | 7 +++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/lldb/include/lldb/Symbol/ClangASTContext.h b/lldb/include/lldb/Symbol/ClangASTContext.h index 44cef71490aee..b9947b5e1557a 100644 --- a/lldb/include/lldb/Symbol/ClangASTContext.h +++ b/lldb/include/lldb/Symbol/ClangASTContext.h @@ -68,9 +68,7 @@ class ClangASTContext : public TypeSystem { static ConstString GetPluginNameStatic(); static lldb::TypeSystemSP CreateInstance(lldb::LanguageType language, - Module *module, Target *target, - const char *compiler_options); - + Module *module, Target *target); static LanguageSet GetSupportedLanguagesForTypes(); static LanguageSet GetSupportedLanguagesForExpressions(); diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index aaa9122a8cd6b..3845699d8a741 100644 --- a/lldb/source/Symbol/ClangASTContext.cpp +++ b/lldb/source/Symbol/ClangASTContext.cpp @@ -555,10 +555,9 @@ ConstString ClangASTContext::GetPluginName() { uint32_t ClangASTContext::GetPluginVersion() { return 1; } -lldb::TypeSystemSP -ClangASTContext::CreateInstance(lldb::LanguageType language, - lldb_private::Module *module, Target *target, - const char *compiler_options) { +lldb::TypeSystemSP ClangASTContext::CreateInstance(lldb::LanguageType language, + lldb_private::Module *module, + Target *target) { if (ClangASTContextSupportsLanguage(language)) { ArchSpec arch; if (module)