| 201 | |
| 202 | /// Utility struct that wraps a variable name and llvm type. |
| 203 | struct NamedVariable { |
| 204 | std::string name; |
| 205 | llvm::Type* type; |
| 206 | |
| 207 | NamedVariable(const std::string& name="", llvm::Type* type = NULL) { |
| 208 | this->name = name; |
| 209 | this->type = type; |
| 210 | } |
| 211 | }; |
| 212 | |
| 213 | /// Abstraction over function prototypes. Contains helpers to build prototypes and |
| 214 | /// generate IR for the types. |
no outgoing calls