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/ModuleBuilder.cpp | |
| 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/ModuleBuilder.cpp')
| -rw-r--r-- | clang/CodeGen/ModuleBuilder.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/CodeGen/ModuleBuilder.cpp b/clang/CodeGen/ModuleBuilder.cpp index fff5b3fbfff..b626c45272c 100644 --- a/clang/CodeGen/ModuleBuilder.cpp +++ b/clang/CodeGen/ModuleBuilder.cpp @@ -50,6 +50,11 @@ void clang::CodeGen::CodeGenGlobalVar(CodeGenModule *Builder, FileVarDecl *D) { Builder->EmitGlobalVarDeclarator(D); } +/// CodeGenTypeDecl - Compile a type. +void clang::CodeGen::CodeGenTypeDecl(CodeGenModule *Builder, TypeDecl *D) { + Builder->EmitType(D); +} + /// PrintStats - Emit statistic information to stderr. /// |

