|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73641 - trunk/libs/spirit/example/qi/compiler_tutorial/conjure3
From: joel_at_[hidden]
Date: 2011-08-10 15:04:04
Author: djowel
Date: 2011-08-10 15:04:03 EDT (Wed, 10 Aug 2011)
New Revision: 73641
URL: http://svn.boost.org/trac/boost/changeset/73641
Log:
Simple tweaks
Text files modified:
trunk/libs/spirit/example/qi/compiler_tutorial/conjure3/compiler.cpp | 2 ++
trunk/libs/spirit/example/qi/compiler_tutorial/conjure3/compiler.hpp | 8 +++-----
2 files changed, 5 insertions(+), 5 deletions(-)
Modified: trunk/libs/spirit/example/qi/compiler_tutorial/conjure3/compiler.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/conjure3/compiler.cpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/conjure3/compiler.cpp 2011-08-10 15:04:03 EDT (Wed, 10 Aug 2011)
@@ -256,7 +256,9 @@
{
typedef value result_type;
llvm_compiler* c;
+
to_value(llvm_compiler* c = 0) : c(c) {}
+
value operator()(llvm::Value& v) const
{
return c->val(&v);
Modified: trunk/libs/spirit/example/qi/compiler_tutorial/conjure3/compiler.hpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/conjure3/compiler.hpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/conjure3/compiler.hpp 2011-08-10 15:04:03 EDT (Wed, 10 Aug 2011)
@@ -74,7 +74,7 @@
friend value operator>(value a, value b);
friend value operator>=(value a, value b);
- protected:
+ private:
struct to_llvm_value;
friend struct to_llvm_value;
@@ -88,8 +88,6 @@
llvm::LLVMContext& context() const
{ return llvm::getGlobalContext(); }
- private:
-
operator llvm::Value*() const;
llvm::Value* v;
@@ -136,11 +134,11 @@
typedef llvm::Function::arg_iterator arg_iterator;
typedef boost::transform_iterator<
to_value, arg_iterator>
- argval_iterator;
+ arg_val_iterator;
public:
- typedef boost::iterator_range<argval_iterator> arg_range;
+ typedef boost::iterator_range<arg_val_iterator> arg_range;
function()
: f(0), c(c) {}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk