Skip to content

Commit 7274c1e

Browse files
committed
---
yaml --- r: 2229 b: refs/heads/master c: 592cd5f h: refs/heads/master i: 2227: 830a525 v: v3
1 parent 32936b9 commit 7274c1e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: bc6e9815379e31ac42b4d9fd2b0e20f708c1cc1c
2+
refs/heads/master: 592cd5fa309e1d6a3157c7417b67bf7503d0151f

trunk/src/rustllvm/RustWrapper.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "llvm/Target/TargetMachine.h"
1919
#include "llvm/Target/TargetSelect.h"
2020
#include "llvm/Target/TargetRegistry.h"
21+
#include "llvm/Target/TargetOptions.h"
2122
#include "llvm-c/Core.h"
2223
#include "llvm-c/Object.h"
2324
#include <cstdlib>
@@ -51,6 +52,10 @@ enum LLVMCodeGenFileType {
5152
extern "C" void LLVMRustWriteOutputFile(LLVMPassManagerRef PMR, LLVMModuleRef M,
5253
const char *triple, const char *path,
5354
LLVMCodeGenFileType FileType) {
55+
56+
// Set compilation options.
57+
llvm::NoFramePointerElim = true;
58+
5459
InitializeAllTargets();
5560
InitializeAllAsmPrinters();
5661
InitializeAllAsmParsers();

0 commit comments

Comments
 (0)