Skip to content

Commit 0e0a7fd

Browse files
committed
[lldb] Add empty implementation for TypeSystemSwift ptrauth methods
Adds empty implementations for `GetPtrAuthKey`, `GetPtrAuthDiscriminator`, and `GetPtrAuthAddressDiversity`.
1 parent c049de4 commit 0e0a7fd

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwift.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,20 @@ lldb::Format TypeSystemSwift::GetFormat(opaque_compiler_type_t type) {
137137
return eFormatBytes;
138138
}
139139

140+
unsigned TypeSystemSwift::GetPtrAuthKey(lldb::opaque_compiler_type_t type) {
141+
return 0;
142+
}
143+
144+
unsigned
145+
TypeSystemSwift::GetPtrAuthDiscriminator(lldb::opaque_compiler_type_t type) {
146+
return 0;
147+
}
148+
149+
bool TypeSystemSwift::GetPtrAuthAddressDiversity(
150+
lldb::opaque_compiler_type_t type) {
151+
return false;
152+
}
153+
140154
namespace llvm {
141155
llvm::raw_ostream &
142156
operator<<(llvm::raw_ostream &os,

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwift.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@ class TypeSystemSwift : public TypeSystem {
312312
CompilerType GetNonReferenceType(lldb::opaque_compiler_type_t type) override {
313313
return {};
314314
}
315+
316+
unsigned GetPtrAuthKey(lldb::opaque_compiler_type_t type) override;
317+
unsigned GetPtrAuthDiscriminator(lldb::opaque_compiler_type_t type) override;
318+
bool GetPtrAuthAddressDiversity(lldb::opaque_compiler_type_t type) override;
319+
315320
/// \}
316321
protected:
317322
/// Used in the logs.

0 commit comments

Comments
 (0)