Skip to content

Commit

Permalink
Remove unused fields.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186791 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
espindola committed Jul 21, 2013
1 parent 043722f commit 5d3041f
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions examples/Kaleidoscope/Chapter2/toy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ class ExprAST {

/// NumberExprAST - Expression class for numeric literals like "1.0".
class NumberExprAST : public ExprAST {
double Val;
public:
NumberExprAST(double val) : Val(val) {}
NumberExprAST(double val) {}
};

/// VariableExprAST - Expression class for referencing a variable, like "a".
Expand All @@ -97,11 +96,8 @@ class VariableExprAST : public ExprAST {

/// BinaryExprAST - Expression class for a binary operator.
class BinaryExprAST : public ExprAST {
char Op;
ExprAST *LHS, *RHS;
public:
BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs)
: Op(op), LHS(lhs), RHS(rhs) {}
BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs) {}
};

/// CallExprAST - Expression class for function calls.
Expand All @@ -127,12 +123,8 @@ class PrototypeAST {

/// FunctionAST - This class represents a function definition itself.
class FunctionAST {
PrototypeAST *Proto;
ExprAST *Body;
public:
FunctionAST(PrototypeAST *proto, ExprAST *body)
: Proto(proto), Body(body) {}

FunctionAST(PrototypeAST *proto, ExprAST *body) {}
};

//===----------------------------------------------------------------------===//
Expand Down

0 comments on commit 5d3041f

Please sign in to comment.