-
- // For Darwin, external and weak symbols are indirect, so we want to load
- // the value at address GV, not the value of GV itself. This means that
- // the GlobalAddress must be in the base or index register of the address,
- // not the GV offset field.
- if (getTargetMachine().getRelocationModel() != Reloc::Static &&
- Subtarget->GVRequiresExtraLoad(GV, false))
- Result = DAG.getLoad(getPointerTy(), DAG.getEntryNode(), Result, NULL, 0);
- } else if (Subtarget->GVRequiresExtraLoad(GV, false)) {
- Result = DAG.getLoad(getPointerTy(), DAG.getEntryNode(), Result, NULL, 0);