Ignore:
Timestamp:
Jul 11, 2015, 5:16:37 PM (4 years ago)
Author:
nmedfort
Message:

Minor changes to function compilation preceeding any modification of the pablo Call class.

File:
1 edited

Legend:

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

    r4657 r4659  
    1212class Assign;
    1313class PabloBlock;
     14class String;
    1415
    1516class PabloFunction : public PabloAST {
     
    2930    }
    3031
    31     static PabloFunction Create();
     32    static PabloFunction Create(std::string && name);
    3233
    3334    virtual bool operator==(const PabloAST & other) const {
     
    3738    PabloBlock & getEntryBlock() {
    3839        return mEntryBlock;
     40    }
     41
     42    const String * getName() const {
     43        return mName;
    3944    }
    4045
     
    8691
    8792protected:
    88     PabloFunction();
     93    PabloFunction(std::string && name);
    8994private:
    9095    PabloBlock &        mEntryBlock;
     
    9297    Results             mResults;
    9398    SymbolGenerator     mSymbolTable;
     99    String *            mName;
    94100};
    95101
    96 inline PabloFunction PabloFunction::Create() {
    97     return PabloFunction();
     102inline PabloFunction PabloFunction::Create(std::string && name) {
     103    return PabloFunction(std::move(name));
    98104}
    99105
Note: See TracChangeset for help on using the changeset viewer.