Search in sources :

Example 1 with ElementImpl

use of com.oracle.objectfile.ElementImpl in project graal by oracle.

the class MachOObjectFile method newUserDefinedSection.

@Override
public MachOUserDefinedSection newUserDefinedSection(Segment segment, String name, int alignment, ElementImpl impl) {
    assert segment != null;
    ElementImpl ourImpl;
    if (impl == null) {
        ourImpl = new BasicProgbitsSectionImpl((Section) null);
    } else {
        ourImpl = impl;
    }
    MachOUserDefinedSection userDefined = new MachOUserDefinedSection(this, name, alignment, (Segment64Command) segment, SectionType.REGULAR, ourImpl);
    ourImpl.setElement(userDefined);
    return userDefined;
}
Also used : ElementImpl(com.oracle.objectfile.ElementImpl) BasicProgbitsSectionImpl(com.oracle.objectfile.BasicProgbitsSectionImpl)

Aggregations

BasicProgbitsSectionImpl (com.oracle.objectfile.BasicProgbitsSectionImpl)1 ElementImpl (com.oracle.objectfile.ElementImpl)1