| 184 | } |
| 185 | |
| 186 | Function* ModuleBuilder::GetFunction(const string& name) { |
| 187 | CHECK_EQ(state_, kBuilding); |
| 188 | // All extern "C" functions are guaranteed to have the same |
| 189 | // exact name as declared in the source file. |
| 190 | return CHECK_NOTNULL(module_->getFunction(name)); |
| 191 | } |
| 192 | |
| 193 | Type* ModuleBuilder::GetType(const string& name) { |
| 194 | CHECK_EQ(state_, kBuilding); |