Ignore:
Timestamp:
Apr 6, 2017, 10:21:36 PM (3 years ago)
Author:
cameron
Message:

Avoiding MRemap for Mac OS X

File:
1 edited

Legend:

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

    r5389 r5397  
    1717#include <errno.h>
    1818#include <llvm/Support/raw_ostream.h>
     19
    1920
    2021using namespace llvm;
     
    169170}
    170171
     172#ifdef __APPLE__
     173#define MAP_ANONYMOUS MAP_ANON
     174#endif
     175
    171176Value * CBuilder::CreateAnonymousMMap(Value * size) {
    172177    PointerType * const voidPtrTy = getVoidPtrTy();
     
    212217}
    213218
     219#ifndef __APPLE__
    214220Value * CBuilder::CreateMRemap(Value * addr, Value * oldSize, Value * newSize, const bool mayMove) {
    215221    DataLayout DL(mMod);
     
    230236    return ptr;
    231237}
     238#endif
    232239
    233240Value * CBuilder::CreateMUnmap(Value * addr, Value * size) {
Note: See TracChangeset for help on using the changeset viewer.