mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
fix some bugs in tutorial, patch by Erick Tryzelaar
llvm-svn: 47481
This commit is contained in:
parent
5eaa8e774e
commit
fd538f8ee9
@ -933,7 +933,7 @@ public:
|
|||||||
/// of arguments the function takes).
|
/// of arguments the function takes).
|
||||||
class PrototypeAST {
|
class PrototypeAST {
|
||||||
std::string Name;
|
std::string Name;
|
||||||
std::vector< Args;
|
std::vector<std::string> Args;
|
||||||
public:
|
public:
|
||||||
PrototypeAST(const std::string &name, const std::vector<std::string> &args)
|
PrototypeAST(const std::string &name, const std::vector<std::string> &args)
|
||||||
: Name(name), Args(args) {}
|
: Name(name), Args(args) {}
|
||||||
@ -1132,7 +1132,7 @@ static FunctionAST *ParseDefinition() {
|
|||||||
static FunctionAST *ParseTopLevelExpr() {
|
static FunctionAST *ParseTopLevelExpr() {
|
||||||
if (ExprAST *E = ParseExpression()) {
|
if (ExprAST *E = ParseExpression()) {
|
||||||
// Make an anonymous proto.
|
// Make an anonymous proto.
|
||||||
PrototypeAST *Proto = new PrototypeAST("", std::vector<());
|
PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>());
|
||||||
return new FunctionAST(Proto, E);
|
return new FunctionAST(Proto, E);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user