Ignore:
Timestamp:
Apr 8, 2018, 12:33:46 PM (18 months ago)
Author:
cameron
Message:

Back reference analysis in support of future back reference compilation mode

File:
1 edited

Legend:

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

    r5945 r5951  
    2424#include <re/grapheme_clusters.h>
    2525#include <llvm/Support/raw_ostream.h>
     26#include <llvm/Support/ErrorHandling.h>
    2627#include <toolchain/toolchain.h>
    2728
     
    119120    }
    120121
     122    if (!DefiniteLengthBackReferencesOnly(r)) {
     123        llvm::report_fatal_error("Future back reference support: references must be within a fixed distance from a fixed-length capture.");
     124    }
    121125    return r;
    122126}
Note: See TracChangeset for help on using the changeset viewer.