Ignore:
Timestamp:
Nov 11, 2017, 9:46:13 PM (15 months ago)
Author:
cameron
Message:

Changes for compatibility with LLVM 5.0.0

File:
1 edited

Legend:

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

    r5630 r5733  
    44 *  icgrep is a trademark of International Characters.
    55 */
    6 
     6#include <toolchain/toolchain.h>
    77#include "idisa_nvptx_builder.h"
    88#include <llvm/IR/InlineAsm.h>
     
    263263    InlineAsm *IA = InlineAsm::get(AsmFnTy, AsmStream, "=r,r", true, false);
    264264    CallInst * result = CreateCall(IA, conv);
     265#if LLVM_VERSION_INTEGER < LLVM_5_0_0
    265266    result->addAttribute(AttributeSet::FunctionIndex, Attribute::NoUnwind);
    266 
     267#else
     268    result->addAttribute(AttributeList::FunctionIndex, Attribute::NoUnwind);
     269#endif
    267270    CreateRet(result);
    268271}
Note: See TracChangeset for help on using the changeset viewer.