Ignore:
Timestamp:
Apr 14, 2018, 12:40:34 PM (12 months ago)
Author:
cameron
Message:

Fix for -L/-l

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep/grep_engine.cpp

    r5964 r5969  
    155155}
    156156
    157 MatchOnlyEngine::MatchOnlyEngine(bool showFilesWithoutMatch, bool useNullSeparators) :
    158     GrepEngine(), mRequiredCount(showFilesWithoutMatch) {
     157MatchOnlyEngine::MatchOnlyEngine(bool showFilesWithMatch, bool useNullSeparators) :
     158    GrepEngine(), mRequiredCount(showFilesWithMatch) {
    159159    mEngineKind = EngineKind::MatchOnly;
    160160    mFileSuffix = useNullSeparators ? std::string("\0", 1) : "\n";
    161161    mMoveMatchesToEOL = false;
    162162    mMaxCount = 1;
     163    mShowFileNames = true;
    163164}
    164165
     
    474475    mGrepDriver->deallocateBuffers();
    475476    idb->CreateRet(matchedLineCount);
     477   
    476478    mGrepDriver->finalizeObject();
    477479}
     
    754756    Module * M = idb->getModule();
    755757   
     758    mSaveSegmentPipelineParallel = codegen::SegmentPipelineParallel;
     759    codegen::SegmentPipelineParallel = false;
    756760    const unsigned segmentSize = codegen::BufferSegments * codegen::SegmentSize * codegen::ThreadNum;
    757761   
     
    846850    auto f = reinterpret_cast<GrepFunctionType>(mGrepDriver->getMain());
    847851    f(search_buffer, bufferLength);
    848 }
    849 
    850 }
     852    codegen::SegmentPipelineParallel = mSaveSegmentPipelineParallel;
     853}
     854
     855}
Note: See TracChangeset for help on using the changeset viewer.