search for: parseextern

Displaying 3 results from an estimated 3 matches for "parseextern".

2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...LevelExpr() { if (ExprAST *E = ParseExpression()) { // Make an anonymous proto. PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); return new FunctionAST(Proto, E); } return 0; } /// external ::= 'extern' prototype static PrototypeAST *ParseExtern() { getNextToken(); // eat extern. return ParsePrototype(); } //===----------------------------------------------------------------------===// // Code Generation //===----------------------------------------------------------------------===// static Module *TheModule; static IRBuilder<&gt...
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...xpression()) { > // Make an anonymous proto. > PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); > return new FunctionAST(Proto, E); > } > return 0; > } > > /// external ::= 'extern' prototype > static PrototypeAST *ParseExtern() { > getNextToken(); // eat extern. > return ParsePrototype(); > } > > > //===----------------------------------------------------------------------===// > // Code Generation > > //===----------------------------------------------------------------------===// > &gt...
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...n anonymous proto. >>    PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>()); >>    return new FunctionAST(Proto, E); >>  } >>  return 0; >> } >> >> /// external ::= 'extern' prototype >> static PrototypeAST *ParseExtern() { >>  getNextToken();  // eat extern. >>  return ParsePrototype(); >> } >> >> >> //===----------------------------------------------------------------------===// >> // Code Generation >> >> //===------------------------------------------------...