diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-03-13 22:26:59 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-03-13 22:26:59 +0000 |
commit | 4cb1f5f4064f2eec1420dc30bf32ac54bd40e222 (patch) | |
tree | 375f06d186835d6e1fc68795ba4834c5ae50dd3d /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 33905b2a34da69bc05d67567fe1c1b6e74d32fa0 (diff) |
Reset some of the target options which affect code generation.
This doesn't reset all of the target options within the TargetOptions
object. This is because some of those are ABI-specific and must be determined if
it's okay to change those on the fly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 39a1f8a3d0..c3b6276a8d 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -362,6 +362,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) { TargetSubtargetInfo &ST = const_cast<TargetSubtargetInfo&>(TM.getSubtarget<TargetSubtargetInfo>()); ST.resetSubtargetFeatures(MF); + TM.resetTargetOptions(MF); DEBUG(dbgs() << "\n\n\n=== " << Fn.getName() << "\n"); |