summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-09-26 01:28:10 +0000
committerEric Christopher <echristo@gmail.com>2014-09-26 01:28:10 +0000
commit3976f78247528d7f37006790d7c3c36a7c4d6621 (patch)
tree35765d9442682dbe9f127d65fd4e3ecebdd8b679 /llvm/lib/CodeGen/SelectionDAG
parentb4379f9c2c5de9d407d7a4d989683e2cc2d9fb56 (diff)
downloadbcm5719-llvm-3976f78247528d7f37006790d7c3c36a7c4d6621.tar.gz
bcm5719-llvm-3976f78247528d7f37006790d7c3c36a7c4d6621.zip
Move resetTargetOptions from taking a MachineFunction to a Function
since we are accessing the TargetMachine that we're a member function of. llvm-svn: 218489
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 32b327f7d6b..4ef3e6f94f5 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -421,7 +421,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
LibInfo = &getAnalysis<TargetLibraryInfo>();
GFI = Fn.hasGC() ? &getAnalysis<GCModuleInfo>().getFunctionInfo(Fn) : nullptr;
- TM.resetTargetOptions(MF);
+ TM.resetTargetOptions(Fn);
// Reset OptLevel to None for optnone functions.
CodeGenOpt::Level NewOptLevel = OptLevel;
OpenPOWER on IntegriCloud