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/base64.cpp

    r5464 r5474  
    9696    iBuilder->CreateRetVoid();
    9797
    98     pxDriver.linkAndFinalize();
     98    pxDriver.finalizeObject();
    9999}
    100100
    101101
    102102typedef void (*base64FunctionType)(const uint32_t fd, char * outputBuffer);
    103 
    104 base64FunctionType base64CodeGen(void) {
    105     ParabixDriver pxDriver("base64");
    106     base64PipelineGen(pxDriver);
    107     return reinterpret_cast<base64FunctionType>(pxDriver.getPointerToMain());
    108 }
    109103
    110104size_t file_size(const int fd) {
     
    142136}
    143137
    144 
    145138int main(int argc, char *argv[]) {
    146139    AddParabixVersionPrinter();
     
    148141    cl::ParseCommandLineOptions(argc, argv);
    149142
    150     base64FunctionType fn_ptr = base64CodeGen();
     143    ParabixDriver pxDriver("base64");
     144    base64PipelineGen(pxDriver);
     145    auto main = reinterpret_cast<base64FunctionType>(pxDriver.getMain());
    151146
    152147    for (unsigned i = 0; i != inputFiles.size(); ++i) {
    153         base64(fn_ptr, inputFiles[i]);
     148        base64(main, inputFiles[i]);
    154149    }
    155150
Note: See TracChangeset for help on using the changeset viewer.