File tree Expand file tree Collapse file tree 3 files changed +25
-10
lines changed
lldb/source/Plugins/TypeSystem/Swift Expand file tree Collapse file tree 3 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -9284,16 +9284,17 @@ bool SwiftASTContext::GetCompileUnitImportsImpl(
9284
9284
validate_pcm = true ;
9285
9285
#endif
9286
9286
}
9287
-
9288
- auto &pp_opts = m_clangimporter->getClangPreprocessor ()
9289
- .getPreprocessorOpts ();
9290
- pp_opts.DisablePCHOrModuleValidation =
9291
- validate_pcm ? clang::DisableValidationForModuleKind::None
9292
- : clang::DisableValidationForModuleKind::All;
9293
- pp_opts.ModulesCheckRelocated = validate_pcm;
9294
-
9295
- LOG_PRINTF (GetLog (LLDBLog::Types), " PCM validation is %s" ,
9296
- validate_pcm ? " disabled" : " enabled" );
9287
+
9288
+ const auto &pp_opts =
9289
+ m_clangimporter->getClangPreprocessor ().getPreprocessorOpts ();
9290
+ // rdar://155232969
9291
+ // pp_opts.DisablePCHOrModuleValidation =
9292
+ // validate_pcm ? clang::DisableValidationForModuleKind::None
9293
+ // : clang::DisableValidationForModuleKind::All;
9294
+ // pp_opts.ModulesCheckRelocated = validate_pcm;
9295
+
9296
+ if (!validate_pcm)
9297
+ LOG_PRINTF (GetLog (LLDBLog::Types), " PCM validation cannot be disabled" );
9297
9298
}
9298
9299
9299
9300
LOG_PRINTF (GetLog (LLDBLog::Types), " Importing dependencies of current CU" );
Original file line number Diff line number Diff line change 16
16
#include " Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.h"
17
17
#include " lldb/Core/PluginManager.h"
18
18
#include " lldb/Symbol/CompileUnit.h"
19
+ #include " llvm/Support/Error.h"
19
20
#include < lldb/lldb-enumerations.h>
20
21
#include < llvm/ADT/StringRef.h>
21
22
@@ -207,6 +208,13 @@ bool TypeSystemSwift::GetPtrAuthAddressDiversity(
207
208
return false ;
208
209
}
209
210
211
+ llvm::Expected<CompilerType> TypeSystemSwift::GetDereferencedType (
212
+ lldb::opaque_compiler_type_t type, ExecutionContext *exe_ctx,
213
+ std::string &deref_name, uint32_t &deref_byte_size,
214
+ int32_t &deref_byte_offset, ValueObject *valobj, uint64_t &language_flags) {
215
+ return llvm::createStringError (" Swift types cannot be dereferenced" );
216
+ }
217
+
210
218
namespace llvm {
211
219
llvm::raw_ostream &
212
220
operator <<(llvm::raw_ostream &os,
Original file line number Diff line number Diff line change @@ -350,6 +350,12 @@ class TypeSystemSwift : public TypeSystem {
350
350
unsigned GetPtrAuthDiscriminator (lldb::opaque_compiler_type_t type) override ;
351
351
bool GetPtrAuthAddressDiversity (lldb::opaque_compiler_type_t type) override ;
352
352
353
+ llvm::Expected<CompilerType>
354
+ GetDereferencedType (lldb::opaque_compiler_type_t type,
355
+ ExecutionContext *exe_ctx, std::string &deref_name,
356
+ uint32_t &deref_byte_size, int32_t &deref_byte_offset,
357
+ ValueObject *valobj, uint64_t &language_flags) override ;
358
+
353
359
// / \}
354
360
protected:
355
361
// / Used in the logs.
You can’t perform that action at this time.
0 commit comments