]> granicus.if.org Git - clang/commit
Merge PCHWriterDecl.cpp's isRequiredDecl and CodeGenModule::MayDeferGeneration into...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 27 Jul 2010 22:01:17 +0000 (22:01 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 27 Jul 2010 22:01:17 +0000 (22:01 +0000)
commitee94e2d10728d1b6a87a11aeee122e8759f58c63
tree0a3ee297a9b8fe980de0c7937994b666eef57bc8
parent0246376203474718e0ec7e4025b1820c6e72a3da
Merge PCHWriterDecl.cpp's isRequiredDecl and CodeGenModule::MayDeferGeneration into a new function,
DeclIsRequiredFunctionOrFileScopedVar.

This function is part of the public CodeGen interface since it's essentially a CodeGen predicate that is also
needed by the PCH mechanism to determine whether a decl needs to be deserialized during PCH loading for codegen purposes.
This fixes current (and avoids future) codegen-from-PCH bugs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109546 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/CodeGen/BackendUtil.h
lib/CodeGen/CodeGenModule.cpp
lib/Frontend/PCHWriterDecl.cpp
test/PCH/cxx-required-decls.cpp
test/PCH/cxx-required-decls.h
tools/libclang/Makefile