comparison gen/irstate.cpp @ 103:855adfdb8d38 trunk

[svn r107] Getting .classinfo on a class instance now works (classinfo is stored in vtable)
author lindquist
date Sun, 18 Nov 2007 08:25:07 +0100
parents 5071469303d4
children 288fe1029e1f
comparison
equal deleted inserted replaced
102:027b8d8b71ec 103:855adfdb8d38
103 return !scopebb()->empty() && scopebb()->back().isTerminator(); 103 return !scopebb()->empty() && scopebb()->back().isTerminator();
104 } 104 }
105 105
106 ////////////////////////////////////////////////////////////////////////////////////////// 106 //////////////////////////////////////////////////////////////////////////////////////////
107 107
108 IRStruct::IRStruct()
109 : recty(llvm::OpaqueType::get())
110 {
111 type = 0;
112 defined = false;
113 constinited = false;
114 }
115
116 IRStruct::IRStruct(Type* t) 108 IRStruct::IRStruct(Type* t)
117 : recty(llvm::OpaqueType::get()) 109 : recty((t->llvmType != NULL) ? *t->llvmType : llvm::OpaqueType::get())
118 { 110 {
119 type = t; 111 type = t;
120 defined = false; 112 defined = false;
121 constinited = false; 113 constinited = false;
122 } 114 }