Ignore:
Timestamp:
Sep 30, 2014, 2:44:40 PM (5 years ago)
Author:
nmedfort
Message:

Replaced dynamic_cast with llvm::dyn_cast in pablo code; implemented make functions for pablo constructors. Disabled RTTI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/ps_while.h

    r4199 r4200  
    1313namespace pablo {
    1414
    15 class While : public PabloE {
     15class While : public PabloE {   
     16public:
     17
     18    static inline bool classof(const PabloE * e) {
     19        return e->getClassTypeId() == ClassTypeId::While;
     20    }
     21    static inline bool classof(const void *) {
     22        return false;
     23    }
     24
    1625    typedef std::list<PabloE*> List;
    17 public:
     26
    1827    While(PabloE* expr, List psl)
    1928    : PabloE(ClassTypeId::While)
     
    3948    }
    4049private:
    41     PabloE *    mExpr;
    42     List        mPSList;
     50    PabloE * const  mExpr;
     51    List            mPSList;
    4352};
    4453
Note: See TracChangeset for help on using the changeset viewer.