Ignore:
Timestamp:
Dec 21, 2017, 4:57:36 PM (13 months ago)
Author:
cameron
Message:

Alphabet fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_collect_unicodesets.cpp

    r5772 r5796  
    1010#include <re/re_intersect.h>
    1111#include <re/re_assertion.h>
     12#include <cc/alphabet.h>
    1213#include <boost/container/flat_set.hpp>
    13 
     14#include <llvm/Support/raw_ostream.h>
    1415
    1516using namespace llvm;
     
    2829    if (Visited.insert(re).second) {
    2930        if (CC * cc = dyn_cast<CC>(re)) {
    30             UnicodeSets.push_back(cc);
     31            if (cc->getAlphabet() == &cc::Unicode) {
     32                UnicodeSets.push_back(cc);
     33            }
    3134        } else if (isa<Name>(re)) {
    3235            auto def = cast<Name>(re)->getDefinition();
Note: See TracChangeset for help on using the changeset viewer.