llvm-project/clang/lib/Serialization
Nico Weber ff4b35e6e7 Objective-C: Serialize "more than one decl" state of ObjCMethodList.
This fixes PR21587, what r221933 fixed for regular programs is now also
fixed for decls coming from PCH files.

Use another bit from the count/bits uint16_t for storing the "more than one
decl" bit.  This reduces the number of bits for the count from 14 to 13.
The selector with the most overloads in Cocoa.h has ~55 overloads, so 13 bits
should still be plenty.  Since this changes the meaning of a serialized bit
pattern, also increase clang::serialization::VERSION_MAJOR.

Storing the "more than one decl" state of only the first overload isn't quite
correct, but Sema::AreMultipleMethodsInGlobalPool() currently only looks at
the state of the first overload so it's good enough for now.

llvm-svn: 224892
2014-12-27 22:14:15 +00:00
..
ASTCommon.cpp [modules] Make NamespaceAliasDecl redeclarable, as it should be. This fixes 2014-09-03 23:11:22 +00:00
ASTCommon.h [OPENMP] Codegen for threadprivate variables 2014-11-11 04:05:39 +00:00
ASTReader.cpp Objective-C: Serialize "more than one decl" state of ObjCMethodList. 2014-12-27 22:14:15 +00:00
ASTReaderDecl.cpp Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept. 2014-11-19 07:49:47 +00:00
ASTReaderInternals.h Objective-C: Serialize "more than one decl" state of ObjCMethodList. 2014-12-27 22:14:15 +00:00
ASTReaderStmt.cpp Renamed RefersToEnclosingLocal bitfield to RefersToCapturedVariable. 2014-12-16 08:01:48 +00:00
ASTWriter.cpp Objective-C: Serialize "more than one decl" state of ObjCMethodList. 2014-12-27 22:14:15 +00:00
ASTWriterDecl.cpp Renamed RefersToEnclosingLocal bitfield to RefersToCapturedVariable. 2014-12-16 08:01:48 +00:00
ASTWriterStmt.cpp Renamed RefersToEnclosingLocal bitfield to RefersToCapturedVariable. 2014-12-16 08:01:48 +00:00
CMakeLists.txt [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
GeneratePCH.cpp [C++11] Use 'nullptr'. Serialization edition. 2014-05-22 05:54:18 +00:00
GlobalModuleIndex.cpp Simplify code a bit by passing StreamFile to the BitstreamCursor constructor. 2014-11-12 14:42:25 +00:00
Makefile
Module.cpp Add a "signature" to AST files to verify that they haven't changed 2014-10-23 18:05:36 +00:00
ModuleManager.cpp [modules] When explicitly importing a module, it's fine for the imported module 2014-11-21 05:37:20 +00:00