| 191 | } |
| 192 | |
| 193 | Type* ModuleBuilder::GetType(const string& name) { |
| 194 | CHECK_EQ(state_, kBuilding); |
| 195 | // Technically clang is not obligated to name every |
| 196 | // class as "class.kudu::ClassName" but so long as there |
| 197 | // are no naming conflicts in the LLVM context it appears |
| 198 | // to do so (naming conflicts are avoided by having 1 context |
| 199 | // per module) |
| 200 | return CHECK_NOTNULL(module_->getTypeByName(name)); |
| 201 | } |
| 202 | |
| 203 | Value* ModuleBuilder::GetPointerValue(void* ptr) const { |
| 204 | CHECK_EQ(state_, kBuilding); |
no outgoing calls