Ignore:
Timestamp:
May 24, 2017, 12:06:43 PM (2 years ago)
Author:
nmedfort
Message:

Eliminated ExecutionEngine? memory leak. Intentionally broke compatibility with prior versions to ensure unchecked in projects are restructured.

File:
1 edited

Legend:

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

    r5464 r5474  
    108108    iBuilder->CreateRetVoid();
    109109 
    110     pxDriver.linkAndFinalize();
     110    pxDriver.finalizeObject();
    111111}
    112112
     
    115115    ParabixDriver pxDriver("lz4d");
    116116    generatePipeline(pxDriver);
    117     return reinterpret_cast<MainFunctionType>(pxDriver.getPointerToMain());
     117    return reinterpret_cast<MainFunctionType>(pxDriver.getMain());
    118118}
    119119
     
    149149    char *fileBuffer = const_cast<char *>(mappedFile.data()) + lz4Frame.getBlocksStart();
    150150
    151     MainFunctionType fn_ptr = codeGen();
    152     fn_ptr(fileBuffer, lz4Frame.getBlocksLength(), lz4Frame.hasBlockChecksum());
     151    ParabixDriver pxDriver("lz4d");
     152    generatePipeline(pxDriver);
     153    auto main = reinterpret_cast<MainFunctionType>(pxDriver.getMain());
     154
     155    main(fileBuffer, lz4Frame.getBlocksLength(), lz4Frame.hasBlockChecksum());
    153156
    154157    mappedFile.close();
Note: See TracChangeset for help on using the changeset viewer.