Ignore:
Timestamp:
Mar 10, 2016, 4:10:02 PM (4 years ago)
Author:
nmedfort
Message:

Some fixes for threading and kernel builder.

File:
1 edited

Legend:

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

    r4967 r4968  
    172172   
    173173    icgrep_Linking(M, mEngine);
     174    #ifndef NDEBUG
    174175    verifyModule(*M, &dbgs());
     176    #endif
    175177    mEngine->finalizeObject();
    176178    delete idb;
    177179
    178     mMainFcn = (main_fcn_T) mEngine->getPointerToFunction(main_IR);
     180    mMainFcn = reinterpret_cast<GrepFunctionType>(mEngine->getPointerToFunction(main_IR));
    179181}
    180 
    181182
    182183re::CC *  GrepEngine::grepCodepoints() {
     
    193194    return getParsedCodePointSet();
    194195}
     196
     197GrepEngine::~GrepEngine() {
     198    delete mEngine;
     199}
Note: See TracChangeset for help on using the changeset viewer.