summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SjLjEHPrepare.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-27 08:48:42 +0000
committerEric Christopher <echristo@gmail.com>2015-01-27 08:48:42 +0000
commit337262068f8daa54a8558980d7780a069b8846c2 (patch)
treebad942e62e2264f22587153dc764af4fad02b0c2 /llvm/lib/CodeGen/SjLjEHPrepare.cpp
parentf9d020d41209b783fd29d79b7b63e6807edd75ea (diff)
downloadbcm5719-llvm-337262068f8daa54a8558980d7780a069b8846c2.tar.gz
bcm5719-llvm-337262068f8daa54a8558980d7780a069b8846c2.zip
Replace some uses of getSubtargetImpl with the cached version
off of the MachineFunction or with the version that takes a Function reference as an argument. llvm-svn: 227185
Diffstat (limited to 'llvm/lib/CodeGen/SjLjEHPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/SjLjEHPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SjLjEHPrepare.cpp b/llvm/lib/CodeGen/SjLjEHPrepare.cpp
index 7fd8107707c..35e4292eea8 100644
--- a/llvm/lib/CodeGen/SjLjEHPrepare.cpp
+++ b/llvm/lib/CodeGen/SjLjEHPrepare.cpp
@@ -191,7 +191,7 @@ Value *SjLjEHPrepare::setupFunctionContext(Function &F,
// Create an alloca for the incoming jump buffer ptr and the new jump buffer
// that needs to be restored on all exits from the function. This is an alloca
// because the value needs to be added to the global context list.
- const TargetLowering *TLI = TM->getSubtargetImpl()->getTargetLowering();
+ const TargetLowering *TLI = TM->getSubtargetImpl(F)->getTargetLowering();
unsigned Align =
TLI->getDataLayout()->getPrefTypeAlignment(FunctionContextTy);
FuncCtx = new AllocaInst(FunctionContextTy, nullptr, Align, "fn_context",
OpenPOWER on IntegriCloud