diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-08-29 06:34:53 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-08-29 06:34:53 +0000 |
commit | d6902a1403c46161db316c582a50acc0cb1dd60b (patch) | |
tree | 5dc19ebf63c9ad3933eb74df67d3624812a2e797 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | ae926ad24d2fffbffb1a6154f81600c33486babf (diff) | |
download | bcm5719-llvm-d6902a1403c46161db316c582a50acc0cb1dd60b.tar.gz bcm5719-llvm-d6902a1403c46161db316c582a50acc0cb1dd60b.zip |
Improve unique_ptr-y ownership in ASTUnit::ComputePreamble
Rather than having a pair of pairs and a reference out parameter, build
a structure with everything together and named. A raw pointer and a
unique_ptr, rather than a raw pointer and a boolean, are used to
communicate ownership transfer.
It's possible one day we'll end up with a conditional pointer (probably
represented by a raw pointer and a boolean) abstraction to use in places
like this. Conditional ownership seems to be coming up more often than
I'd hoped...
llvm-svn: 216712
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions