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 | 965bd589020e04ac9f1daabf2b2f9e7bd121658c (patch) | |
tree | 9914a70ecdd62dc01a1e7c638d943ded9090ec0c /llvm/lib/CodeGen | |
parent | dabafea7d665ab875768d179d577280369859a4d (diff) | |
download | bcm5719-llvm-965bd589020e04ac9f1daabf2b2f9e7bd121658c.tar.gz bcm5719-llvm-965bd589020e04ac9f1daabf2b2f9e7bd121658c.zip |
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.
llvm-svn: 176986
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 39a1f8a3d0d..c3b6276a8dc 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/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"); |