diff options
author | Gregory Szorc <gregory.szorc@gmail.com> | 2012-05-08 05:56:38 +0000 |
---|---|---|
committer | Gregory Szorc <gregory.szorc@gmail.com> | 2012-05-08 05:56:38 +0000 |
commit | dfc894f3aa8aaaac25664886251c8c9d3d041019 (patch) | |
tree | 7bbcedb67d80231043263d7a0d007861633da641 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | e87b55214b0e0df713da78b59ea4ec2c7b5a4ed2 (diff) | |
download | bcm5719-llvm-dfc894f3aa8aaaac25664886251c8c9d3d041019.tar.gz bcm5719-llvm-dfc894f3aa8aaaac25664886251c8c9d3d041019.zip |
[clang.py] TranslationUnit API improvements
* TranslationUnit reading and parsing now implemented as
TranslationUnit.from_ast() and TranslationUnit.from_source().
* Index.parse() and Index.read() implemented through above.
* Index.parse() and Index.read() now raise a TanslationUnitLoadException
instead of returning None if a TranslationUnit could not be
instantiated. This is backwards incompatible.
* Ability to save TranslationUnits via TranslationUnit.save().
* TranslationUnit now holds onto Index instance that created. This means
the Index can't be GC'd until the TranslationUnit is itself GC'd,
making memory management thoughtless.
* Don't use [] as a default argument value, as the initial value used is
reused for the duration of the program.
llvm-svn: 156372
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions