Changeset 4853


Ignore:
Timestamp:
Oct 26, 2015, 1:32:29 PM (3 years ago)
Author:
hongpum
Message:

Updated some comments in response to API changes of LLVM 3.6

File:
1 edited

Legend:

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

    r4839 r4853  
    186186    engine->finalizeObject();
    187187   
     188    // TODO getPointerToFunction() is deprecated. Investigate getFunctionAddress(string name) instead.
    188189    void * icgrep_init_carry_ptr = engine->getPointerToFunction(icgrep_IR->getParent()->getFunction("process_block_initialize_carries"));
    189190    void * icgrep_MCptr = engine->getPointerToFunction(icgrep_IR);
     
    194195        grepEngine.setNormalizeLineBreaksOption(NormalizeLineBreaks);
    195196        grepEngine.setShowLineNumberOption(ShowLineNumbers);
    196             if (inputFiles.size() > (firstInputFile + 1) || ShowFileNames) {
     197        if (inputFiles.size() > (firstInputFile + 1) || ShowFileNames) {
    197198            grepEngine.setShowFileNameOption();
    198199        }
     
    202203    }
    203204   
    204     //engine->freeMachineCodeForFunction(icgrep_IR); // This function only prints a "not supported" message. Reevaluate with LLVM 3.6.
     205    //engine->freeMachineCodeForFunction(icgrep_IR); // Removed in LLVM 3.6. MC will be automatically freed in destructors.
    205206    delete engine;
    206207
Note: See TracChangeset for help on using the changeset viewer.