mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Improve r172468: const_cast is not needed here
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
953cbfcd26
commit
510db8bcb9
@ -1016,9 +1016,8 @@ SDValue HexagonTargetLowering::LowerGLOBALADDRESS(SDValue Op,
|
||||
DebugLoc dl = Op.getDebugLoc();
|
||||
Result = DAG.getTargetGlobalAddress(GV, dl, getPointerTy(), Offset);
|
||||
|
||||
HexagonTargetObjectFile &TLOF =
|
||||
static_cast<HexagonTargetObjectFile &>(
|
||||
const_cast<TargetLoweringObjectFile &>(getObjFileLowering()));
|
||||
const HexagonTargetObjectFile &TLOF =
|
||||
static_cast<const HexagonTargetObjectFile &>(getObjFileLowering());
|
||||
if (TLOF.IsGlobalInSmallSection(GV, getTargetMachine())) {
|
||||
return DAG.getNode(HexagonISD::CONST32_GP, dl, getPointerTy(), Result);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user