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/pe_call.h

    r4199 r4200  
    88
    99class Call : public PabloE {
     10    friend Call * make_call(const std::string callee);
    1011public:
    11     Call(std::string callee)
    12     : PabloE(ClassTypeId::Call)
    13     , mCallee(callee) {
    14 
     12    static inline bool classof(const PabloE * e) {
     13        return e->getClassTypeId() == ClassTypeId::Call;
    1514    }
    16 
     15    static inline bool classof(const void *) {
     16        return false;
     17    }
    1718    virtual ~Call() {
    1819
     
    2223        return mCallee;
    2324    }
     25protected:
     26    Call(const std::string callee)
     27    : PabloE(ClassTypeId::Call)
     28    , mCallee(callee) {
     29
     30    }
    2431private:
    25     std::string mCallee;
     32    const std::string mCallee;
    2633};
     34
     35inline Call * make_call(const std::string callee) {
     36    return new Call(callee);
     37}
    2738
    2839}
Note: See TracChangeset for help on using the changeset viewer.