summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-02-03 07:22:52 +0000
committerEric Christopher <echristo@gmail.com>2015-02-03 07:22:52 +0000
commit36fe028a2a8e58662af11f6a741d03bc551e4cc8 (patch)
tree4105a31dbda3fa5786d1f6cda1e9ad50175ddff0 /llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
parent8f276db622cb38e160de447c03281bac11f9d6c8 (diff)
downloadbcm5719-llvm-36fe028a2a8e58662af11f6a741d03bc551e4cc8.tar.gz
bcm5719-llvm-36fe028a2a8e58662af11f6a741d03bc551e4cc8.zip
Only access TLOF via the TargetMachine, not TargetLowering.
llvm-svn: 227949
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonISelLowering.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonISelLowering.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
index b0f78a3a789..124dc9af881 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
@@ -1018,9 +1018,10 @@ SDValue HexagonTargetLowering::LowerGLOBALADDRESS(SDValue Op,
SDLoc dl(Op);
Result = DAG.getTargetGlobalAddress(GV, dl, getPointerTy(), Offset);
- const HexagonTargetObjectFile &TLOF =
- static_cast<const HexagonTargetObjectFile &>(getObjFileLowering());
- if (TLOF.IsGlobalInSmallSection(GV, getTargetMachine())) {
+ const HexagonTargetObjectFile *TLOF =
+ static_cast<const HexagonTargetObjectFile *>(
+ getTargetMachine().getObjFileLowering());
+ if (TLOF->IsGlobalInSmallSection(GV, getTargetMachine())) {
return DAG.getNode(HexagonISD::CONST32_GP, dl, getPointerTy(), Result);
}
OpenPOWER on IntegriCloud