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/array-test.cpp

    r5464 r5474  
    183183    iBuilder->CreateRetVoid();
    184184
    185     pxDriver.linkAndFinalize();
     185    pxDriver.finalizeObject();
    186186}
    187187
    188188typedef void (*MatchParens)(char * byteStream, size_t fileSize);
    189 
    190 MatchParens generateAlgorithm() {
    191     ParabixDriver pxDriver("mp");
    192     pipeline(pxDriver, 3);
    193     return reinterpret_cast<MatchParens>(pxDriver.getPointerToMain());
    194 }
    195189
    196190template <typename T>
     
    254248int main(int argc, char *argv[]) {
    255249    cl::ParseCommandLineOptions(argc, argv);
    256     auto f = generateAlgorithm();
     250    ParabixDriver pxDriver("mp");
     251    pipeline(pxDriver, 3);
     252    auto main = reinterpret_cast<MatchParens>(pxDriver.getMain());
    257253    for (const auto & inputFile : inputFiles) {
    258         run(f, inputFile);
     254        run(main, inputFile);
    259255    }
    260256    return 0;
Note: See TracChangeset for help on using the changeset viewer.