From: Akira Hatanaka Date: Tue, 26 May 2015 20:18:26 +0000 (+0000) Subject: Remove the code in clang that is using TargetOptions::NoFramePointerElim. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=631e2be00cb2a028bfd9e67dd2413776cb7d825d;p=clang Remove the code in clang that is using TargetOptions::NoFramePointerElim. This is the clang side change following r238244. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@238245 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp index 30030050df..7f0c7bafc0 100644 --- a/lib/CodeGen/BackendUtil.cpp +++ b/lib/CodeGen/BackendUtil.cpp @@ -491,15 +491,6 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) { if (CodeGenOpts.CompressDebugSections) Options.CompressDebugSections = true; - // Set frame pointer elimination mode. - if (!CodeGenOpts.DisableFPElim) { - Options.NoFramePointerElim = false; - } else if (CodeGenOpts.OmitLeafFramePointer) { - Options.NoFramePointerElim = false; - } else { - Options.NoFramePointerElim = true; - } - if (CodeGenOpts.UseInitArray) Options.UseInitArray = true;