Ignore:
Timestamp:
Mar 22, 2018, 7:26:40 AM (13 months ago)
Author:
cameron
Message:

mmap - command line flag + overridden for stdin, devices, files of size 0 (incl virtual files such as /proc/cpuinfo)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep_interface.cpp

    r5900 r5927  
    9696
    9797bool MmapFlag;
    98 static cl::opt<bool, true> MmapOption("mmap", cl::location(MmapFlag), cl::desc("Use mmap for file input."), cl::cat(Input_Options));
     98static cl::opt<bool, true> MmapOption("mmap", cl::location(MmapFlag),  cl::init(1), cl::desc("Use mmap for file input (default)."), cl::cat(Input_Options));
    9999
    100100std::string ExcludeFlag;
     
    267267        llvm::report_fatal_error("Sorry, -U is not yet supported.\n");
    268268    }
    269     if (NullDataFlag) {
    270         llvm::report_fatal_error("Sorry, -z is not yet supported.\n");
    271     }
    272269    if (ExcludeFlag!="") {
    273270        llvm::report_fatal_error("Sorry, -exclude is not yet supported.\n");
Note: See TracChangeset for help on using the changeset viewer.