]> granicus.if.org Git - clang/commit
Merge pending instantiations instead of overwriting existing ones.
authorAxel Naumann <Axel.Naumann@cern.ch>
Tue, 2 Oct 2012 09:09:43 +0000 (09:09 +0000)
committerAxel Naumann <Axel.Naumann@cern.ch>
Tue, 2 Oct 2012 09:09:43 +0000 (09:09 +0000)
commit39d26c3e499470cd80a3e6f26f11ac681cd9712c
tree29e424007f5364bcd619aa1ecc53eaf0c58e35d7
parentb7bafa94bc583af9b825b5049aed50359fdb844b
Merge pending instantiations instead of overwriting existing ones.
Check whether a pending instantiation needs to be instantiated (or whether an instantiation already exists).
Verify the size of the PendingInstantiations record (was only checking size of existing PendingInstantiations).

Migrate Obj-C++ part of redecl-merge into separate test, now that this is growing.
templates.mm: test that CodeGen has seen exactly one definition of template instantiations.
redecl-merge.m: use "@" specifier for expected-diagnostics.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164993 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/Serialization/ASTReader.h
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
test/Modules/Inputs/module.map
test/Modules/Inputs/redecl-merge-bottom.h
test/Modules/Inputs/redecl-merge-left.h
test/Modules/Inputs/redecl-merge-right.h
test/Modules/Inputs/redecl-merge-top.h
test/Modules/Inputs/templates-left.h [new file with mode: 0644]
test/Modules/Inputs/templates-right.h [new file with mode: 0644]
test/Modules/Inputs/templates-top.h [new file with mode: 0644]
test/Modules/redecl-merge.m
test/Modules/templates.mm [new file with mode: 0644]