[cfe-commits] r109797 - in /cfe/trunk: include/clang/AST/ASTContext.h lib/AST/ASTContext.cpp lib/CodeGen/CodeGenModule.cpp lib/Frontend/PCHWriterDecl.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Jul 29 13:08:05 PDT 2010
Author: akirtzidis
Date: Thu Jul 29 15:08:05 2010
New Revision: 109797
URL: http://llvm.org/viewvc/llvm-project?rev=109797&view=rev
Log:
Change the name to something less terrible; suggestion by Doug. No functionality change.
Modified:
cfe/trunk/include/clang/AST/ASTContext.h
cfe/trunk/lib/AST/ASTContext.cpp
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
cfe/trunk/lib/Frontend/PCHWriterDecl.cpp
Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=109797&r1=109796&r2=109797&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Thu Jul 29 15:08:05 2010
@@ -1348,7 +1348,7 @@
///
/// \returns true if the function/var must be CodeGen'ed/deserialized even if
/// it is not used.
- bool DeclIsRequiredFunctionOrFileScopedVar(const Decl *D);
+ bool DeclMustBeEmitted(const Decl *D);
//===--------------------------------------------------------------------===//
// Statistics
Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=109797&r1=109796&r2=109797&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Thu Jul 29 15:08:05 2010
@@ -5543,7 +5543,7 @@
return GVA_StrongExternal;
}
-bool ASTContext::DeclIsRequiredFunctionOrFileScopedVar(const Decl *D) {
+bool ASTContext::DeclMustBeEmitted(const Decl *D) {
if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
if (!VD->isFileVarDecl())
return false;
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=109797&r1=109796&r2=109797&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Thu Jul 29 15:08:05 2010
@@ -587,7 +587,7 @@
if (Features.EmitAllDecls)
return false;
- return !getContext().DeclIsRequiredFunctionOrFileScopedVar(Global);
+ return !getContext().DeclMustBeEmitted(Global);
}
llvm::Constant *CodeGenModule::GetWeakRefReference(const ValueDecl *VD) {
Modified: cfe/trunk/lib/Frontend/PCHWriterDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHWriterDecl.cpp?rev=109797&r1=109796&r2=109797&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriterDecl.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriterDecl.cpp Thu Jul 29 15:08:05 2010
@@ -1086,7 +1086,7 @@
if (isa<FileScopeAsmDecl>(D))
return true;
- return Context.DeclIsRequiredFunctionOrFileScopedVar(D);
+ return Context.DeclMustBeEmitted(D);
}
void PCHWriter::WriteDecl(ASTContext &Context, Decl *D) {
More information about the cfe-commits
mailing list