]> granicus.if.org Git - clang/commitdiff
Change the name to something less terrible; suggestion by Doug. No functionality...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 29 Jul 2010 20:08:05 +0000 (20:08 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 29 Jul 2010 20:08:05 +0000 (20:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109797 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Frontend/PCHWriterDecl.cpp

index 3744473228ce40e99b4e8e126f6875948279544d..3c949700168cd80f675cdfbea1c99e000296ce5c 100644 (file)
@@ -1348,7 +1348,7 @@ public:
   ///
   /// \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
index 633538f3129e06b33acce3405addcc06f90639ed..ef1138eee7238510e3bc2b08ad51bf5a4e2566fc 100644 (file)
@@ -5543,7 +5543,7 @@ GVALinkage ASTContext::GetGVALinkageForVariable(const VarDecl *VD) {
   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;
index 06c6f5da219b2aefd93d0c5d1facf0f01a5d7884..63d79132b1fd07c64fa3d880fb078d87dab06b47 100644 (file)
@@ -587,7 +587,7 @@ bool CodeGenModule::MayDeferGeneration(const ValueDecl *Global) {
   if (Features.EmitAllDecls)
     return false;
 
-  return !getContext().DeclIsRequiredFunctionOrFileScopedVar(Global);
+  return !getContext().DeclMustBeEmitted(Global);
 }
 
 llvm::Constant *CodeGenModule::GetWeakRefReference(const ValueDecl *VD) {
index 5d66c218bb470605c7f10cb0ceef19ce4a33bb52..28a82cd23f5b7a2ec51c8926a9185d85752113bb 100644 (file)
@@ -1086,7 +1086,7 @@ static bool isRequiredDecl(const Decl *D, ASTContext &Context) {
   if (isa<FileScopeAsmDecl>(D))
     return true;
 
-  return Context.DeclIsRequiredFunctionOrFileScopedVar(D);
+  return Context.DeclMustBeEmitted(D);
 }
 
 void PCHWriter::WriteDecl(ASTContext &Context, Decl *D) {