aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-05 08:06:13 +0000
committerChris Lattner <sabre@nondot.org>2008-02-05 08:06:13 +0000
commitd86e6bc7ab4388a578daf46e7c76be9122a25072 (patch)
tree00e1cb94e691418b35d2fe71f1ed5283671af17f /CodeGen/CodeGenModule.h
parent9153f73d1035ddcaac5a253ac2a0570e04e22b1f (diff)
rewrite some of the type refinement code to eliminate dangling pointers
simplify the code and generally make it more robust. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46745 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.h')
-rw-r--r--CodeGen/CodeGenModule.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h
index 87b9e9ce16..5135c1b598 100644
--- a/CodeGen/CodeGenModule.h
+++ b/CodeGen/CodeGenModule.h
@@ -34,6 +34,7 @@ namespace clang {
class Stmt;
class ValueDecl;
class VarDecl;
+ class TypeDecl;
class FileVarDecl;
struct LangOptions;
class Diagnostic;
@@ -87,6 +88,7 @@ public:
void EmitFunction(const FunctionDecl *FD);
void EmitGlobalVar(const FileVarDecl *D);
void EmitGlobalVarDeclarator(const FileVarDecl *D);
+ void EmitType(const TypeDecl *D);
llvm::Constant *EmitGlobalInit(const Expr *E);
llvm::Constant *EmitConstantExpr(const Expr *E);