mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ASTMangler: Verify that debug manglings round-trip
Add an IRGen flag to disable this verification, since it doesn't work from within lldb itself for some reason, and I don't want to investigate it right now.
This commit is contained in:
@@ -158,7 +158,8 @@ public:
|
||||
GenericSignature *signature,
|
||||
ResilienceExpansion expansion);
|
||||
|
||||
std::string mangleTypeForDebugger(Type decl, const DeclContext *DC);
|
||||
std::string mangleTypeForDebugger(Type decl, const DeclContext *DC,
|
||||
bool verify=false);
|
||||
|
||||
std::string mangleDeclType(const ValueDecl *decl);
|
||||
|
||||
|
||||
@@ -197,6 +197,9 @@ public:
|
||||
/// Enable chaining of dynamic replacements.
|
||||
unsigned EnableDynamicReplacementChaining : 1;
|
||||
|
||||
/// Disable round-trip verification of mangled debug types.
|
||||
unsigned DisableRoundTripDebugTypes : 1;
|
||||
|
||||
/// Path to the profdata file to be used for PGO, or the empty string.
|
||||
std::string UseProfile = "";
|
||||
|
||||
@@ -232,6 +235,7 @@ public:
|
||||
EnableResilienceBypass(false), LazyInitializeClassMetadata(false),
|
||||
UseIncrementalLLVMCodeGen(true), UseSwiftCall(false),
|
||||
GenerateProfile(false), EnableDynamicReplacementChaining(false),
|
||||
DisableRoundTripDebugTypes(false),
|
||||
CmdArgs(), SanitizeCoverage(llvm::SanitizerCoverageOptions()),
|
||||
TypeInfoFilter(TypeInfoDumpFilter::All) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user