diff options
author | Eric Christopher <echristo@gmail.com> | 2015-01-27 08:48:42 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-01-27 08:48:42 +0000 |
commit | 337262068f8daa54a8558980d7780a069b8846c2 (patch) | |
tree | bad942e62e2264f22587153dc764af4fad02b0c2 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | f9d020d41209b783fd29d79b7b63e6807edd75ea (diff) | |
download | bcm5719-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/StackProtector.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackProtector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp index a132805ac84..2663fecf4ae 100644 --- a/llvm/lib/CodeGen/StackProtector.cpp +++ b/llvm/lib/CodeGen/StackProtector.cpp @@ -88,7 +88,7 @@ bool StackProtector::runOnFunction(Function &Fn) { DominatorTreeWrapperPass *DTWP = getAnalysisIfAvailable<DominatorTreeWrapperPass>(); DT = DTWP ? &DTWP->getDomTree() : nullptr; - TLI = TM->getSubtargetImpl()->getTargetLowering(); + TLI = TM->getSubtargetImpl(Fn)->getTargetLowering(); Attribute Attr = Fn.getAttributes().getAttribute( AttributeSet::FunctionIndex, "stack-protector-buffer-size"); |