llvm.org GIT mirror llvm / 5d3041f
Remove unused fields. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186791 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 7 years ago
1 changed file(s) with 6 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
8282
8383 /// NumberExprAST - Expression class for numeric literals like "1.0".
8484 class NumberExprAST : public ExprAST {
85 double Val;
86 public:
87 NumberExprAST(double val) : Val(val) {}
85 public:
86 NumberExprAST(double val) {}
8887 };
8988
9089 /// VariableExprAST - Expression class for referencing a variable, like "a".
9695
9796 /// BinaryExprAST - Expression class for a binary operator.
9897 class BinaryExprAST : public ExprAST {
99 char Op;
100 ExprAST *LHS, *RHS;
101 public:
102 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs)
103 : Op(op), LHS(lhs), RHS(rhs) {}
98 public:
99 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs) {}
104100 };
105101
106102 /// CallExprAST - Expression class for function calls.
126122
127123 /// FunctionAST - This class represents a function definition itself.
128124 class FunctionAST {
129 PrototypeAST *Proto;
130 ExprAST *Body;
131 public:
132 FunctionAST(PrototypeAST *proto, ExprAST *body)
133 : Proto(proto), Body(body) {}
134
125 public:
126 FunctionAST(PrototypeAST *proto, ExprAST *body) {}
135127 };
136128
137129 //===----------------------------------------------------------------------===//