aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-09-14 00:05:51 +0000
committerRui Ueyama <ruiu@google.com>2016-09-14 00:05:51 +0000
commit38dbd3eea9943696166467a407cf45159d8c0f3f (patch)
tree666353cf1d5b0e5b3119e9892a2a3e56a09128b0 /clang/lib/Frontend/CompilerInvocation.cpp
parentb38d8a3a3baabf759e819fdefd764462691f4048 (diff)
downloadllvm-38dbd3eea9943696166467a407cf45159d8c0f3f.zip
llvm-38dbd3eea9943696166467a407cf45159d8c0f3f.tar.gz
llvm-38dbd3eea9943696166467a407cf45159d8c0f3f.tar.bz2
Simplify InputFile ownership management.
Previously, all input files were owned by the symbol table. Files were created at various places, such as the Driver, the lazy symbols, or the bitcode compiler, and the ownership of new files was transferred to the symbol table using std::unique_ptr. All input files were then free'd when the symbol table is freed which is on program exit. I think we don't have to transfer ownership just to free all instance at once on exit. In this patch, all instances are automatically collected to a vector and freed on exit. In this way, we no longer have to use std::unique_ptr. Differential Revision: https://reviews.llvm.org/D24493 llvm-svn: 281425
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions