diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-07-29 18:15:58 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-07-29 18:15:58 +0000 |
| commit | c81af03fb39c879f1713224b29ac0fc10470ea89 (patch) | |
| tree | 78e00da9aeb4b42b33b85ebb93e8301c28b02083 /llvm/lib/Target/ARM/ARMSelectionDAGInfo.cpp | |
| parent | 7f4b81af7aeb47c31e046cb282d2779beea2a9c9 (diff) | |
| download | bcm5719-llvm-c81af03fb39c879f1713224b29ac0fc10470ea89.tar.gz bcm5719-llvm-c81af03fb39c879f1713224b29ac0fc10470ea89.zip | |
Merge PCHWriterDecl.cpp's isRequiredDecl and CodeGenModule::MayDeferGeneration into a new function,
DeclIsRequiredFunctionOrFileScopedVar.
This is 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.
Since this logic is shared by CodeGen and the PCH mechanism, move it to the ASTContext,
thus CodeGenModule's GetLinkageForFunction/GetLinkageForVariable and the GVALinkage enum is moved out of CodeGen.
This fixes current (and avoids future) codegen-from-PCH bugs.
llvm-svn: 109784
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSelectionDAGInfo.cpp')
0 files changed, 0 insertions, 0 deletions

