diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-22 09:01:48 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-22 09:01:48 +0000 |
| commit | 4903ea2c6588851b3012694d2546eaf6d3820e3c (patch) | |
| tree | a73f0251815ffeeb589fcc07b3e7435ec97be27b /lib/CodeGen/CGExprComplex.cpp | |
| parent | 18b652521d2ab456d7dca748190c674d5bce829d (diff) | |
| download | clang-4903ea2c6588851b3012694d2546eaf6d3820e3c.tar.gz clang-4903ea2c6588851b3012694d2546eaf6d3820e3c.tar.bz2 clang-4903ea2c6588851b3012694d2546eaf6d3820e3c.tar.xz | |
Add class-specific operator new to Decl hierarchy. This guarantees that Decls
can't accidentally be allocated the wrong way (missing prefix data for decls
from AST files, for instance) and simplifies the CreateDeserialized functions a
little. An extra DeclContext* parameter to the not-from-AST-file operator new
allows us to ensure that we don't accidentally call the wrong one when
deserializing (when we don't have a DeclContext), allows some extra checks, and
prepares for some planned modules-related changes to Decl allocation.
No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
0 files changed, 0 insertions, 0 deletions
