Add a detailed AST dumper for types.

... because pretty-printed types are useless for debugging.

Swift SVN r25422
This commit is contained in:
Doug Gregor
2015-02-20 06:22:46 +00:00
parent dc46dd1a5a
commit 09021d97ce
6 changed files with 560 additions and 46 deletions

View File

@@ -18,7 +18,7 @@ bool DestructorAnalysis::mayStoreToMemoryOnDestruction(SILType T) {
bool IsSafe = isSafeType(T.getSwiftRValueType());
DEBUG(llvm::dbgs() << " DestructorAnalysis::mayStoreToMemoryOnDestruction is"
<< (IsSafe ? " false: " : " true: "));
DEBUG(T.getSwiftRValueType()->dump());
DEBUG(T.getSwiftRValueType()->print(llvm::errs()));
return !IsSafe;
}