diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-10-19 21:44:57 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-10-19 21:44:57 +0000 |
commit | 428c637ada848e4e5d848693a553ec160ba0bd45 (patch) | |
tree | c4faaf9a637333ec6765b7b267d22d4386368b8f /llvm/lib/Transforms/IPO/FunctionAttrs.cpp | |
parent | b9e8c42ee6aea4b7d5be84a92c1311cdb5624b98 (diff) | |
download | bcm5719-llvm-428c637ada848e4e5d848693a553ec160ba0bd45.tar.gz bcm5719-llvm-428c637ada848e4e5d848693a553ec160ba0bd45.zip |
The constructor for ASTUnit now takes a DiagnosticClient*, allowing uses of ASTUnit to specify
alternate DiagnosticClients. To match this API, ASTUnit::LoadFromPCHFile() now takes a corresponding
DiagnosticClient* argument as well. The DiagnosticClient object is destroyed when the ASTUnit object
is destroyed.
The CIndex library now uses this API to create a 'IgnoreDiagnosticsClient' that simply silences
diagnostics when using the clang_createTranslationUnitFromSourceFile() function. This fixes
<rdar://problem/7312058>. This API can change in the future as we add more flexibility for clients.
llvm-svn: 84539
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionAttrs.cpp')
0 files changed, 0 insertions, 0 deletions