| commit | f73034f99a634ba9fa67960633753f729802b6c3 | [log] [tgz] |
|---|---|---|
| author | Greg Clayton <gclayton@apple.com> | Tue Sep 08 18:15:05 2015 +0000 |
| committer | Greg Clayton <gclayton@apple.com> | Tue Sep 08 18:15:05 2015 +0000 |
| tree | d2dd3872f57f667f3dfbfad09ff24e944627b386 | |
| parent | 21a145c341e0b2825fa7b58685bc27cac1a8cbcc [diff] |
Use LLVM casting for TypeSystem so you can cast it to subclasses.
This will keep our code cleaner and it removes the need for intrusive additions to TypeSystem like:
class TypeSystem
{
virtual ClangASTContext *
AsClangASTContext() = 0;
}
As you can now just use the llvm::dyn_cast and other casts.
llvm-svn: 247041