use of com.oracle.truffle.llvm.runtime.IDGenerater.BitcodeID in project graal by oracle.
the class LLVMFunctionDescriptor method compareTo.
@Override
public int compareTo(LLVMFunctionDescriptor o) {
int otherIndex = o.llvmFunction.getSymbolIndexIllegalOk();
BitcodeID otherBitcodeID = o.llvmFunction.getBitcodeIDIllegalOk();
int index = llvmFunction.getSymbolIndexIllegalOk();
BitcodeID bitcodeID = llvmFunction.getBitcodeIDIllegalOk();
if (bitcodeID == otherBitcodeID) {
return Long.compare(index, otherIndex);
}
throw new IllegalStateException("Comparing functions from different bitcode files.");
}
Aggregations