summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-13 21:18:01 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-13 21:18:01 +0000
commit6b8720e7237576f6c3671013e31ff81ec09f4864 (patch)
tree27780b64a3514e0b8c6258577836105e1fc9e203 /clang/lib/CodeGen/CodeGenModule.h
parent08b26a05870748014f2759e9d89488df672a337a (diff)
downloadbcm5719-llvm-6b8720e7237576f6c3671013e31ff81ec09f4864.tar.gz
bcm5719-llvm-6b8720e7237576f6c3671013e31ff81ec09f4864.zip
Pull MayDeferGeneration out of EmitGlobal.
- Fix emission of static functions with constructor attribute while I was here. <rdar://problem/6140899> [codegen] "static" and attribute-constructor interact poorly llvm-svn: 64488
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 1d10f9d1e39..967889a92df 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -324,6 +324,11 @@ private:
void EmitLLVMUsed(void);
void BindRuntimeFunctions();
+
+ /// MayDeferGeneration - Determine if the given decl can be emitted
+ /// lazily; this is only relevant for definitions. The given decl
+ /// must be either a function or var decl.
+ bool MayDeferGeneration(const ValueDecl *D);
};
} // end namespace CodeGen
} // end namespace clang
OpenPOWER on IntegriCloud