diff examples/Kaleidoscope/Chapter2/toy.cpp @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents 1172e4bd9c6f
children
line wrap: on
line diff
--- a/examples/Kaleidoscope/Chapter2/toy.cpp	Fri Nov 25 19:14:25 2016 +0900
+++ b/examples/Kaleidoscope/Chapter2/toy.cpp	Fri Oct 27 17:07:41 2017 +0900
@@ -140,6 +140,8 @@
 public:
   PrototypeAST(const std::string &Name, std::vector<std::string> Args)
       : Name(Name), Args(std::move(Args)) {}
+
+  const std::string &getName() const { return Name; }
 };
 
 /// FunctionAST - This class represents a function definition itself.