diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-14 22:18:18 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-14 22:18:18 +0000 |
commit | 510db8bcb959fa69a93c42b58cb3e0ab28d03825 (patch) | |
tree | ef413e9cfcab8b49e3b7e90735da646d780e8e76 | |
parent | 953cbfcd26fa59d80c8d9ca749b5dd8ef901d11a (diff) | |
download | external_llvm-510db8bcb959fa69a93c42b58cb3e0ab28d03825.zip external_llvm-510db8bcb959fa69a93c42b58cb3e0ab28d03825.tar.gz external_llvm-510db8bcb959fa69a93c42b58cb3e0ab28d03825.tar.bz2 |
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
-rw-r--r-- | lib/Target/Hexagon/HexagonISelLowering.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/Hexagon/HexagonISelLowering.cpp b/lib/Target/Hexagon/HexagonISelLowering.cpp index 4c27d35..1a0e581 100644 --- a/lib/Target/Hexagon/HexagonISelLowering.cpp +++ b/lib/Target/Hexagon/HexagonISelLowering.cpp @@ -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); } |