Enable arm error handling abi

This commit is contained in:
ILyoan 2013-03-14 15:40:05 +09:00
parent e67448d397
commit f581b2f9dd

View file

@ -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;