MCAsmLayout layout; uint64_t offset = layout.getSymbolOffset(symbol);
MCAsmLayout layout; uint64_t value = 0x1234; uint64_t alignment = 16; uint64_t alignedValue = layout.getAlignedValue(value, alignment);This code aligns a value to a boundary specified by the alignment parameter using the getAlignedValue() method of the MCAsmLayout class. Package library: This class is part of the LLVM Core Libraries package.