Ignore:
Timestamp:
Nov 10, 2016, 9:32:32 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Make ElfNote? as simple structure (use initializer list to construct).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdbin/ROCmBinaries.cpp

    r2554 r2556  
    222222    elfBinGen64.addDynamics(sizeof(dynTags)/sizeof(int32_t), dynTags);
    223223   
    224     elfBinGen64.addNote(ElfNote("AMD", sizeof noteDescType1, noteDescType1, 1U));
     224    elfBinGen64.addNote(ElfNote{"AMD", sizeof noteDescType1, noteDescType1, 1U});
    225225    std::unique_ptr<cxbyte[]> noteBuf(new cxbyte[0x1b]);
    226226    ::memcpy(noteBuf.get(), noteDescType3, 0x1e);
     
    228228    //SULEV(*(uint32_t*)(noteBuf.get()+8), amdGpuArchValues.minor);
    229229    //SULEV(*(uint32_t*)(noteBuf.get()+12), amdGpuArchValues.stepping);
    230     elfBinGen64.addNote(ElfNote("AMD", 0x1b, noteBuf.get(), 3U));
     230    elfBinGen64.addNote(ElfNote{"AMD", 0x1b, noteBuf.get(), 3U});
    231231   
    232232    elfBinGen64.addRegion(ElfRegion64::programHeaderTable());
Note: See TracChangeset for help on using the changeset viewer.