]> granicus.if.org Git - clang/commit
Implement semantic analysis and an AST representation for the named
authorDouglas Gregor <dgregor@apple.com>
Sat, 15 May 2010 06:01:05 +0000 (06:01 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 15 May 2010 06:01:05 +0000 (06:01 +0000)
commit5077c3876beeaed32280af88244e8050078619a8
treea33c75c7ad2eedc6e0cbd811555fab85c81971fc
parentf805a6cc00b27ff0bcfc7f821e5d286c32a769ec
Implement semantic analysis and an AST representation for the named
return value optimization. Sema marks return statements with their
NRVO candidates (which may or may not end up using the NRVO), then, at
the end of a function body, computes and marks those variables that
can be allocated into the return slot.

I've checked this locally with some debugging statements (not
committed), but there won't be any tests until CodeGen comes along.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103865 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/AST/Stmt.h
lib/CodeGen/CGObjC.cpp
lib/Frontend/PCHReaderDecl.cpp
lib/Frontend/PCHReaderStmt.cpp
lib/Frontend/PCHWriterDecl.cpp
lib/Frontend/PCHWriterStmt.cpp
lib/Sema/Sema.cpp
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaStmt.cpp