#include "mem/st/visitor/DepBuilder.hpp"

namespace mem { namespace st { namespace visitor {


DepBuilder::DepBuilder ()
{
   _name = "st.DepBuilder";
}

bool
DepBuilder::visit (st::Symbol* sym)
{
   if (sym->isClassSymbol())
   {
      visitClass(static_cast<st::Class*>(sym));
   }
   return true;
}

void
DepBuilder::visitClass (st::Class* cls_sym)
{
   _dep_tree.addDependency(NULL, cls_sym);
}


} } }

#include "mem/st/visitor/DepBuilder.hpp"

namespace mem { namespace st { namespace visitor {


DepBuilder::DepBuilder ()
{
   _name = "st.DepBuilder";
}

bool
DepBuilder::visit (st::Symbol* sym)
{
   printf("Visit...\n");
   if (sym->isClassSymbol())
   {
      visitClass(static_cast<st::Class*>(sym));
   }
   return true;
}

void
DepBuilder::visitClass (st::Class* cls_sym)
{
   printf("Visiting CLS !\n");
   _dep_tree.addDependency(NULL, cls_sym);
}


} } }

--- 
+++ 
@@ -11,7 +11,6 @@
 bool
 DepBuilder::visit (st::Symbol* sym)
 {
-   printf("Visit...\n");
    if (sym->isClassSymbol())
    {
       visitClass(static_cast<st::Class*>(sym));
@@ -22,7 +21,6 @@
 void
 DepBuilder::visitClass (st::Class* cls_sym)
 {
-   printf("Visiting CLS !\n");
    _dep_tree.addDependency(NULL, cls_sym);
 }
 
Add support for basic ops in LLVM
