Ignore:
Timestamp:
Jul 12, 2015, 3:52:43 PM (4 years ago)
Author:
nmedfort
Message:

Start of work to make the pablo compiler reenterant. Fixed bug that prevented it from using Less optimization level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/UCD/PropertyObjects.cpp

    r4633 r4661  
    6767}
    6868
     69PropertyObject::iterator ExtensionPropertyObject::begin() const {
     70    if (const auto * obj = dyn_cast<EnumeratedPropertyObject>(property_object_table[base_property])) {
     71        return obj->begin();
     72    }
     73    throw std::runtime_error("Iterators unsupported for this type of PropertyObject.");
     74}
     75
     76PropertyObject::iterator ExtensionPropertyObject::end() const {
     77    if (const auto * obj = dyn_cast<EnumeratedPropertyObject>(property_object_table[base_property])) {
     78        return obj->end();
     79    }
     80    throw std::runtime_error("Iterators unsupported for this type of PropertyObject.");
     81}
     82
    6983const UnicodeSet & ExtensionPropertyObject::GetCodepointSet(const std::string & value_spec) {
    7084    int property_enum_val = GetPropertyValueEnumCode(value_spec);
     
    8195
    8296int ExtensionPropertyObject::GetPropertyValueEnumCode(const std::string & value_spec) {
    83     int c = property_object_table[base_property]->GetPropertyValueEnumCode(value_spec);
    84     return c;
     97    return property_object_table[base_property]->GetPropertyValueEnumCode(value_spec);
    8598}
    8699
Note: See TracChangeset for help on using the changeset viewer.