We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc6e981 commit 592cd5fCopy full SHA for 592cd5f
src/rustllvm/RustWrapper.cpp
@@ -18,6 +18,7 @@
18
#include "llvm/Target/TargetMachine.h"
19
#include "llvm/Target/TargetSelect.h"
20
#include "llvm/Target/TargetRegistry.h"
21
+#include "llvm/Target/TargetOptions.h"
22
#include "llvm-c/Core.h"
23
#include "llvm-c/Object.h"
24
#include <cstdlib>
@@ -51,6 +52,10 @@ enum LLVMCodeGenFileType {
51
52
extern "C" void LLVMRustWriteOutputFile(LLVMPassManagerRef PMR, LLVMModuleRef M,
53
const char *triple, const char *path,
54
LLVMCodeGenFileType FileType) {
55
+
56
+ // Set compilation options.
57
+ llvm::NoFramePointerElim = true;
58
59
InitializeAllTargets();
60
InitializeAllAsmPrinters();
61
InitializeAllAsmParsers();
0 commit comments