Ignore:
Timestamp:
Apr 9, 2016, 2:13:20 PM (3 years ago)
Author:
nmedfort
Message:

Fix for u8u16

File:
1 edited

Legend:

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

    r5007 r5010  
    277277typedef void (*u8u16FunctionType)(char * byte_data, size_t filesize);
    278278
     279static ExecutionEngine * u8u16Engine = nullptr;
     280
    279281u8u16FunctionType u8u16CodeGen(void) {
    280282                           
     
    300302    verifyModule(*M, &dbgs());
    301303    //std::cerr << "ExecuteKernels(); done\n";
    302     ExecutionEngine * mEngine = JIT_to_ExecutionEngine(M);
    303    
    304     mEngine->finalizeObject();
     304    u8u16Engine = JIT_to_ExecutionEngine(M);
     305   
     306    u8u16Engine->finalizeObject();
    305307    //std::cerr << "finalizeObject(); done\n";
    306308
    307309    delete idb;
    308     return reinterpret_cast<u8u16FunctionType>(mEngine->getPointerToFunction(main_IR));
     310    return reinterpret_cast<u8u16FunctionType>(u8u16Engine->getPointerToFunction(main_IR));
    309311}
    310312
     
    383385    }
    384386
     387    delete u8u16Engine;
     388
    385389    return 0;
    386390}
Note: See TracChangeset for help on using the changeset viewer.