diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-02-05 08:06:13 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-02-05 08:06:13 +0000 |
| commit | b1537ebdd4b91405ecb4fdb379120f8820e15212 (patch) | |
| tree | 236d44a0be9e1f3959ec38b9a74bb58d003f250d /clang/CodeGen/CodeGenModule.h | |
| parent | d8902e06ba940b3a1f6124ffd31ee963a23cbdb9 (diff) | |
| download | bcm5719-llvm-b1537ebdd4b91405ecb4fdb379120f8820e15212.tar.gz bcm5719-llvm-b1537ebdd4b91405ecb4fdb379120f8820e15212.zip | |
rewrite some of the type refinement code to eliminate dangling pointers
simplify the code and generally make it more robust.
llvm-svn: 46745
Diffstat (limited to 'clang/CodeGen/CodeGenModule.h')
| -rw-r--r-- | clang/CodeGen/CodeGenModule.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/CodeGen/CodeGenModule.h b/clang/CodeGen/CodeGenModule.h index 87b9e9ce164..5135c1b598a 100644 --- a/clang/CodeGen/CodeGenModule.h +++ b/clang/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); |

