diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2014-01-28 14:59:28 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2014-01-29 16:35:05 -0500 |
| commit | cb263e875e2ede820f4fab45a68d08ff6a9b2870 (patch) | |
| tree | f0381ddc6044537da9461d400bd502efa73a1203 /src/rustllvm/PassWrapper.cpp | |
| parent | 17c42db6d18dc52335d734cdea01af5c0ff0a8ce (diff) | |
| download | rust-cb263e875e2ede820f4fab45a68d08ff6a9b2870.tar.gz rust-cb263e875e2ede820f4fab45a68d08ff6a9b2870.zip | |
enable fp-elim when debug info is disabled
This can almost be fully disabled, as it no longer breaks retrieving a backtrace on OS X as verified by @alexcrichton. However, it still breaks retrieving the values of parameters. This should be fixable in the future via a proper location list... Closes #7477
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
| -rw-r--r-- | src/rustllvm/PassWrapper.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rustllvm/PassWrapper.cpp b/src/rustllvm/PassWrapper.cpp index cab9c187eae..2bc96d9f0bf 100644 --- a/src/rustllvm/PassWrapper.cpp +++ b/src/rustllvm/PassWrapper.cpp @@ -68,7 +68,8 @@ LLVMRustCreateTargetMachine(const char *triple, Reloc::Model RM, CodeGenOpt::Level OptLevel, bool EnableSegmentedStacks, - bool UseSoftFloat) { + bool UseSoftFloat, + bool NoFramePointerElim) { std::string Error; Triple Trip(Triple::normalize(triple)); const llvm::Target *TheTarget = TargetRegistry::lookupTarget(Trip.getTriple(), @@ -79,7 +80,7 @@ LLVMRustCreateTargetMachine(const char *triple, } TargetOptions Options; - Options.NoFramePointerElim = true; + Options.NoFramePointerElim = NoFramePointerElim; Options.EnableSegmentedStacks = EnableSegmentedStacks; Options.FloatABIType = FloatABI::Default; Options.UseSoftFloat = UseSoftFloat; |
