aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-21 12:42:16 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-21 12:42:16 +0000
commit5d3041f99d4a328afa104b3fb410a77faba68d09 (patch)
tree8c7979fecf11923654ac4b9b1d493161023b7ea4 /examples
parent043722f7e7860c8f5cb6c5c332f4dcb1efce472a (diff)
downloadexternal_llvm-5d3041f99d4a328afa104b3fb410a77faba68d09.zip
external_llvm-5d3041f99d4a328afa104b3fb410a77faba68d09.tar.gz
external_llvm-5d3041f99d4a328afa104b3fb410a77faba68d09.tar.bz2
Remove unused fields.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/Kaleidoscope/Chapter2/toy.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/examples/Kaleidoscope/Chapter2/toy.cpp b/examples/Kaleidoscope/Chapter2/toy.cpp
index 1cf6caa..23d45ae 100644
--- a/examples/Kaleidoscope/Chapter2/toy.cpp
+++ b/examples/Kaleidoscope/Chapter2/toy.cpp
@@ -83,9 +83,8 @@ public:
/// 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".
@@ -97,11 +96,8 @@ public:
/// 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.
@@ -127,12 +123,8 @@ public:
/// 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) {}
};
//===----------------------------------------------------------------------===//