Enable arm error handling abi
This commit is contained in:
parent
e67448d397
commit
f581b2f9dd
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "llvm/ADT/DenseSet.h"
|
||||
#include "llvm/Assembly/Parser.h"
|
||||
#include "llvm/Assembly/PrintModulePass.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/FormattedStream.h"
|
||||
#include "llvm/Support/Timer.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
@ -428,6 +429,10 @@ LLVMRustWriteOutputFile(LLVMPassManagerRef PMR,
|
|||
|
||||
LLVMRustInitializeTargets();
|
||||
|
||||
int argc = 2;
|
||||
const char* argv[] = {"rustc", "-arm-enable-ehabi"};
|
||||
cl::ParseCommandLineOptions(argc, argv);
|
||||
|
||||
TargetOptions Options;
|
||||
Options.NoFramePointerElim = true;
|
||||
Options.EnableSegmentedStacks = EnableSegmentedStacks;
|
||||
|
|
Loading…
Add table
Reference in a new issue