diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-04-21 17:11:58 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-04-21 17:11:58 +0000 |
commit | beecd58e21ec458d543bd5ae332d8358578d0251 (patch) | |
tree | 654a2a949dcdb3e8f42d560070b8f2035d613fd8 /clang/test/PCH/external-defs.h | |
parent | 69223bb7f5a99de5d6acdbb5e79bf9bc2ab6faca (diff) | |
download | bcm5719-llvm-beecd58e21ec458d543bd5ae332d8358578d0251.tar.gz bcm5719-llvm-beecd58e21ec458d543bd5ae332d8358578d0251.zip |
Explictly track tentative definitions within Sema, then hand those
tentative definitions off to the ASTConsumer at the end of the
translation unit.
Eliminate CodeGen's internal tracking of tentative definitions, and
instead hook into ASTConsumer::CompleteTentativeDefinition. Also,
tweak the definition-deferal logic for C++, where there are no
tentative definitions.
Fixes <rdar://problem/6808352>, and will make it much easier for
precompiled headers to cope with tentative definitions in the future.
llvm-svn: 69681
Diffstat (limited to 'clang/test/PCH/external-defs.h')
-rw-r--r-- | clang/test/PCH/external-defs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/PCH/external-defs.h b/clang/test/PCH/external-defs.h index 4d233e2a404..bb51a9d64b9 100644 --- a/clang/test/PCH/external-defs.h +++ b/clang/test/PCH/external-defs.h @@ -14,5 +14,4 @@ static int z; int incomplete_array[]; int incomplete_array2[]; -// FIXME: CodeGen problems prevents this from working (<rdar://problem/6762287>) -// struct S s; +struct S s; |