public long getAddress(DWARFForm form, long value, DWARFCompilationUnit cu) throws IOException {
		switch (form) {
			case DW_FORM_addr:
			case DW_FORM_udata:
				return value;
			case DW_FORM_addrx:
			case DW_FORM_addrx1:
			case DW_FORM_addrx2:
			case DW_FORM_addrx3:
			case DW_FORM_addrx4: {
				long addr = addressListTable.getOffset((int) value, cu);
				return addr;
			}
			default:
				throw new IOException("Unsupported form %s".formatted(form));
		}
	}
Returns an address value.

@param form the format of the numeric value
@param value raw offset or indirect address index (depending on the DWARFForm)
@param cu {@link DWARFCompilationUnit}
@return address
@throws IOException if error reading indirect lookup tables
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/DWARFProgram.java