Ignore:
Timestamp:
Jan 16, 2018, 4:22:13 PM (15 months ago)
Author:
nmedfort
Message:

Added PabloBlock/Builder? createScope() methods + minor code changes.

File:
1 edited

Legend:

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

    r5828 r5836  
    1313namespace pablo {
    1414
    15 class Var : public PabloAST {
     15class Var : public NamedPabloAST {
    1616    friend class PabloBlock;
    1717    friend class PabloAST;
     
    7777        }
    7878    }
    79     const String & getName() const noexcept {
     79
     80    const String & getName() const final {
     81        assert (mName);
    8082        return *mName;
    8183    }
     
    8385protected:
    8486    Var(const String * name, llvm::Type * const type, Allocator & allocator, const Attribute attr = Attribute::None)
    85     : PabloAST(ClassTypeId::Var, type, allocator)
    86     , mAttribute(attr)
    87     , mName(name) {
     87    : NamedPabloAST(ClassTypeId::Var, type, name, allocator)
     88    , mAttribute(attr) {
    8889
    8990    }
    9091private:
    9192    unsigned mAttribute;
    92     const String * const mName;
    9393};
    9494
Note: See TracChangeset for help on using the changeset viewer.