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;
}
Aggregations