llvm-project/clang/lib/Serialization
John McCall c07a0c7e48 Change the representation of GNU ?: expressions to use a different expression
class and to bind the shared value using OpaqueValueExpr.  This fixes an
unnoticed problem with deserialization of these expressions where the
deserialized form would lose the vital pointer-equality trait;  or rather,
it fixes it because this patch also does the right thing for deserializing
OVEs.

Change OVEs to not be a "temporary object" in the sense that copy elision is
permitted.

This new representation is not totally unawkward to work with, but I think
that's really part and parcel with the semantics we're modelling here.  In
particular, it's much easier to fix things like the copy elision bug and to
make the CFG look right.

I've tried to update the analyzer to deal with this in at least some          
obvious cases, and I think we get a much better CFG out, but the printing
of OpaqueValueExprs probably needs some work.

llvm-svn: 125744
2011-02-17 10:25:35 +00:00
..
ASTCommon.cpp The -fshort-wchar option causes wchar_t to become unsigned, in addition to being 2010-12-25 23:25:43 +00:00
ASTCommon.h It's kindof silly that ExtQuals has an ASTContext&, and we can use that 2010-12-10 11:01:00 +00:00
ASTReader.cpp Step #1/N of implementing support for __label__: split labels into 2011-02-17 07:39:24 +00:00
ASTReaderDecl.cpp Step #1/N of implementing support for __label__: split labels into 2011-02-17 07:39:24 +00:00
ASTReaderStmt.cpp Change the representation of GNU ?: expressions to use a different expression 2011-02-17 10:25:35 +00:00
ASTWriter.cpp Serialization/deserialization support for floating point #pragma 2011-02-15 19:46:30 +00:00
ASTWriterDecl.cpp Step #1/N of implementing support for __label__: split labels into 2011-02-17 07:39:24 +00:00
ASTWriterStmt.cpp Change the representation of GNU ?: expressions to use a different expression 2011-02-17 10:25:35 +00:00
CMakeLists.txt Add CMake dependencies so that LLVM_USED_LIBS order doesn't matter. 2011-02-11 23:46:38 +00:00
GeneratePCH.cpp Allow resolving headers from a PCH even after headers+PCH were moved to another path. 2011-02-15 17:54:22 +00:00
Makefile Reintroduce the serialization library, with fixed dependencies. 2010-08-17 20:43:28 +00:00