Skip to content

Commit 4cefb29

Browse files
committed
[lldb][DWARFASTParserClang][NFC] Remove redundant parameter to AddMethodToObjCObjectType (llvm#73832)
(cherry picked from commit bcb621f)
1 parent 6119d0e commit 4cefb29

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -998,16 +998,10 @@ TypeSP DWARFASTParserClang::ParseSubroutine(const DWARFDIE &die,
998998
}
999999

10001000
if (class_opaque_type) {
1001-
// If accessibility isn't set to anything valid, assume public
1002-
// for now...
1003-
if (attrs.accessibility == eAccessNone)
1004-
attrs.accessibility = eAccessPublic;
1005-
10061001
clang::ObjCMethodDecl *objc_method_decl =
10071002
m_ast.AddMethodToObjCObjectType(
10081003
class_opaque_type, attrs.name.GetCString(), clang_type,
1009-
attrs.accessibility, attrs.is_artificial, is_variadic,
1010-
attrs.is_objc_direct_call);
1004+
attrs.is_artificial, is_variadic, attrs.is_objc_direct_call);
10111005
type_handled = objc_method_decl != nullptr;
10121006
if (type_handled) {
10131007
LinkDeclContextToDIE(objc_method_decl, die);

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8029,8 +8029,8 @@ clang::ObjCMethodDecl *TypeSystemClang::AddMethodToObjCObjectType(
80298029
const char *name, // the full symbol name as seen in the symbol table
80308030
// (lldb::opaque_compiler_type_t type, "-[NString
80318031
// stringWithCString:]")
8032-
const CompilerType &method_clang_type, lldb::AccessType access,
8033-
bool is_artificial, bool is_variadic, bool is_objc_direct_call) {
8032+
const CompilerType &method_clang_type, bool is_artificial, bool is_variadic,
8033+
bool is_objc_direct_call) {
80348034
if (!type || !method_clang_type.IsValid())
80358035
return nullptr;
80368036

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,8 @@ class TypeSystemClang : public TypeSystem {
998998
const char *name, // the full symbol name as seen in the symbol table
999999
// (lldb::opaque_compiler_type_t type, "-[NString
10001000
// stringWithCString:]")
1001-
const CompilerType &method_compiler_type, lldb::AccessType access,
1002-
bool is_artificial, bool is_variadic, bool is_objc_direct_call);
1001+
const CompilerType &method_compiler_type, bool is_artificial,
1002+
bool is_variadic, bool is_objc_direct_call);
10031003

10041004
static bool SetHasExternalStorage(lldb::opaque_compiler_type_t type,
10051005
bool has_extern);

lldb/unittests/Symbol/TestTypeSystemClang.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,8 +934,7 @@ TEST_F(TestTypeSystemClang, AddMethodToObjCObjectType) {
934934
bool artificial = false;
935935
bool objc_direct = false;
936936
clang::ObjCMethodDecl *method = TypeSystemClang::AddMethodToObjCObjectType(
937-
c, "-[A foo]", func_type, lldb::eAccessPublic, artificial, variadic,
938-
objc_direct);
937+
c, "-[A foo]", func_type, artificial, variadic, objc_direct);
939938
ASSERT_NE(method, nullptr);
940939

941940
// The interface decl should still have external lexical storage.

0 commit comments

Comments
 (0)