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:
Slava Pestov
2019-01-29 18:06:29 -05:00
parent c7aede6ffe
commit c2029db223
4 changed files with 63 additions and 4 deletions

View File

@@ -698,7 +698,8 @@ private:
Mangle::ASTMangler Mangler;
std::string Name = Mangler.mangleTypeForDebugger(
Ty, DbgTy.getDeclContext());
Ty, DbgTy.getDeclContext(),
!Opts.DisableRoundTripDebugTypes);
return BumpAllocatedString(Name);
}