summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Leidel <john.leidel@ttu.edu>2015-05-26 20:32:32 -0500
committerCraig Griffiths <craig.griffiths@codethink.co.uk>2015-08-14 10:39:24 +0100
commit2bc1b74cfecb4aea98981935506448f13dec642f (patch)
tree672c217e74e8855caa6a026b481b53cd1a5edc67
parent59469bc276b6d1307678d72d1c8cfa6d607ef5ef (diff)
downloadflang-2bc1b74cfecb4aea98981935506448f13dec642f.tar.gz
removing code that manually enables/disables frame pointer support as this is deprecated in LLVM trunk from r238244 on
-rw-r--r--lib/CodeGen/BackendUtil.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp
index db8c12befa..4dc6153f3d 100644
--- a/lib/CodeGen/BackendUtil.cpp
+++ b/lib/CodeGen/BackendUtil.cpp
@@ -320,6 +320,12 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
llvm::TargetOptions Options;
// Set frame pointer elimination mode.
+ // WARNING: This code is now dead for LLVM trunk checkin r238244
+ // The checkin in question removes the global variable NoFramePointerElim
+ // from TargetOptions in favor of using resetTargetOptions. This function
+ // resides in TargetMachine and called for individual function instances
+ // via the DAG selection.
+#if 0
if (!CodeGenOpts.DisableFPElim) {
Options.NoFramePointerElim = false;
//Options.NoFramePointerElimNonLeaf = false;
@@ -330,6 +336,7 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
Options.NoFramePointerElim = true;
//Options.NoFramePointerElimNonLeaf = true;
}
+#endif
if (CodeGenOpts.UseInitArray)
Options.UseInitArray = true;