File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: bc6e9815379e31ac42b4d9fd2b0e20f708c1cc1c
2
+ refs/heads/master: 592cd5fa309e1d6a3157c7417b67bf7503d0151f
Original file line number Diff line number Diff line change 18
18
#include " llvm/Target/TargetMachine.h"
19
19
#include " llvm/Target/TargetSelect.h"
20
20
#include " llvm/Target/TargetRegistry.h"
21
+ #include " llvm/Target/TargetOptions.h"
21
22
#include " llvm-c/Core.h"
22
23
#include " llvm-c/Object.h"
23
24
#include < cstdlib>
@@ -51,6 +52,10 @@ enum LLVMCodeGenFileType {
51
52
extern " C" void LLVMRustWriteOutputFile (LLVMPassManagerRef PMR, LLVMModuleRef M,
52
53
const char *triple, const char *path,
53
54
LLVMCodeGenFileType FileType) {
55
+
56
+ // Set compilation options.
57
+ llvm::NoFramePointerElim = true ;
58
+
54
59
InitializeAllTargets ();
55
60
InitializeAllAsmPrinters ();
56
61
InitializeAllAsmParsers ();
You can’t perform that action at this time.
0 commit comments