@Override
	public void addReference(Address refAddr, int opIndex) {
		checkDeleted();
		try {
			Instruction instr = equateMgr.getProgram().getCodeManager().getInstructionAt(refAddr);
			long dynamicHash;
			if (instr == null) {
				dynamicHash = 0;
			}
			else {
				long value = record.getLongValue(EquateDBAdapter.VALUE_COL);
				long hashArray[] = DynamicHash.calcConstantHash(instr, value);
				if (hashArray.length != 1) {
					dynamicHash = 0;
				}
				else {
					dynamicHash = hashArray[0];
				}
			}
			equateMgr.addReference(key, refAddr, (short) opIndex, dynamicHash);
		}
		catch (IOException e) {
			equateMgr.dbError(e);
		}
	}
Constructor
@param equateMgr the equate manager
@param cache EquateDB cache
@param record the record for this equate.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/symbol/EquateDB.java