Ignore:
Timestamp:
Nov 6, 2016, 8:37:11 PM (3 years ago)
Author:
nmedfort
Message:

Initial work on adding types to PabloAST and mutable Var objects.

File:
1 edited

Legend:

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

    r5160 r5202  
    3838        return mValue;
    3939    }
    40     inline bool isGenerated() const {
    41         return mGenerated;
    42     }
    43     inline bool isUserDefined() const {
    44         return !mGenerated;
    45     }
    4640protected:
    47     String(const std::string & value, const bool generated) noexcept
    48     : PabloAST(ClassTypeId::String, getPabloType(PabloType::String, 0))
     41    String(const std::string & value) noexcept
     42    : PabloAST(ClassTypeId::String, llvm::Type::getInt8PtrTy(llvm::getGlobalContext()), this)
    4943    , mValue(duplicate(value))
    50     , mGenerated(generated)
    5144    {
    5245
     
    6053private:
    6154    const StringRef         mValue;
    62     const bool              mGenerated;
    6355};
    6456
Note: See TracChangeset for help on using the changeset viewer.