summaryrefslogtreecommitdiffstats
path: root/llvm/examples/ModuleMaker/ModuleMaker.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-12-03 03:15:28 +0000
committerSean Callanan <scallanan@apple.com>2011-12-03 03:15:28 +0000
commit3b107b172d51a80429dc6a7e2abb419eff3992fa (patch)
treec603f7d6e60223333a129814aeeefa8c025295c3 /llvm/examples/ModuleMaker/ModuleMaker.cpp
parent2869b5afe3cc962cfe33f17d44b0615deeeb7a38 (diff)
downloadbcm5719-llvm-3b107b172d51a80429dc6a7e2abb419eff3992fa.tar.gz
bcm5719-llvm-3b107b172d51a80429dc6a7e2abb419eff3992fa.zip
Added ClangExternalASTSourceCommon, a local superclass
for all our external AST sources that lets us associate arbitrary flags with the types we put into the AST contexts. Also added an API on ClangASTContext that allows access to these flags given only an ASTContext and a type. Because we don't have access to RTTI, and because at some point in the future we might encounter external AST sources that we didn't make (so they don't subclass ClangExternalASTSourceCommon) I added a magic number that we check before doing anything else, so that we can catch that problem as soon as it appears. llvm-svn: 145748
Diffstat (limited to 'llvm/examples/ModuleMaker/ModuleMaker.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud