diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-08-08 01:41:12 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-08-08 01:41:12 +0000 |
| commit | 2c742024ff2c41eb01b85bb574f5b0855a24924a (patch) | |
| tree | 480b8751bcdf556d23c3c55de0601c4c693c3fb3 /clang/lib/Sema/Sema.h | |
| parent | b94284b5e2aed610005e6d5698480837e0512319 (diff) | |
| download | bcm5719-llvm-2c742024ff2c41eb01b85bb574f5b0855a24924a.tar.gz bcm5719-llvm-2c742024ff2c41eb01b85bb574f5b0855a24924a.zip | |
Introduce reference counting for statements and expressions, using it
to allow sharing of nodes. Simplifies some aspects of template
instantiation, and fixes both PR3444 and <rdar://problem/6757457>.
llvm-svn: 78450
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 6094e6dae03..295607b7399 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -2821,14 +2821,6 @@ public: NamedDecl *InstantiateCurrentDeclRef(NamedDecl *D); - // Simple function for cloning expressions. - template<typename T> - OwningExprResult Clone(T *E) { - assert(!E->isValueDependent() && !E->isTypeDependent() && - "expression is value or type dependent!"); - return Owned(E->Clone(Context)); - } - // Objective-C declarations. virtual DeclPtrTy ActOnStartClassInterface(SourceLocation AtInterfaceLoc, IdentifierInfo *ClassName, |

