Upgrade LLVM to svn revision 145779
This pulls in commits 145765 & 145766, which are required for split stacks.
This commit is contained in:
parent
96b0881a68
commit
a92218e630
7 changed files with 34 additions and 66 deletions
|
|
@ -125,7 +125,6 @@ mod write {
|
|||
fn run_passes(sess: session::session, llmod: ModuleRef, output: str) {
|
||||
let opts = sess.get_opts();
|
||||
if opts.time_llvm_passes { llvm::LLVMRustEnableTimePasses(); }
|
||||
if opts.stack_growth { llvm::LLVMRustEnableSegmentedStacks(); }
|
||||
link_intrinsics(sess, llmod);
|
||||
let pm = mk_pass_manager();
|
||||
let td = mk_target_data(
|
||||
|
|
@ -244,7 +243,8 @@ mod write {
|
|||
buf_t,
|
||||
buf_o,
|
||||
LLVMAssemblyFile,
|
||||
CodeGenOptLevel)})});
|
||||
CodeGenOptLevel,
|
||||
opts.stack_growth)})});
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -263,7 +263,8 @@ mod write {
|
|||
buf_t,
|
||||
buf_o,
|
||||
LLVMObjectFile,
|
||||
CodeGenOptLevel)})});
|
||||
CodeGenOptLevel,
|
||||
opts.stack_growth)})});
|
||||
}
|
||||
} else {
|
||||
// If we aren't saving temps then just output the file
|
||||
|
|
@ -280,7 +281,8 @@ mod write {
|
|||
buf_t,
|
||||
buf_o,
|
||||
FileType,
|
||||
CodeGenOptLevel)})});
|
||||
CodeGenOptLevel,
|
||||
opts.stack_growth)})});
|
||||
}
|
||||
// Clean up and return
|
||||
|
||||
|
|
|
|||
|
|
@ -852,15 +852,13 @@ native mod llvm {
|
|||
|
||||
/* FIXME: The FileType is an enum.*/
|
||||
fn LLVMRustWriteOutputFile(PM: PassManagerRef, M: ModuleRef, Triple: sbuf,
|
||||
Output: sbuf, FileType: int, OptLevel: int);
|
||||
Output: sbuf, FileType: int, OptLevel: int,
|
||||
EnableSegmentedStacks: bool);
|
||||
|
||||
/** Returns a string describing the last error caused by an LLVMRust*
|
||||
call. */
|
||||
fn LLVMRustGetLastError() -> sbuf;
|
||||
|
||||
/** Returns a string describing the hosts triple */
|
||||
fn LLVMRustGetHostTriple() -> sbuf;
|
||||
|
||||
/** Parses the bitcode in the given memory buffer. */
|
||||
fn LLVMRustParseBitcode(MemBuf: MemoryBufferRef) -> ModuleRef;
|
||||
|
||||
|
|
@ -876,8 +874,6 @@ native mod llvm {
|
|||
|
||||
/** Turn on LLVM pass-timing. */
|
||||
fn LLVMRustEnableTimePasses();
|
||||
/** Turn on LLVM segmented stacks. */
|
||||
fn LLVMRustEnableSegmentedStacks();
|
||||
|
||||
/** Print the pass timings since static dtors aren't picking them up. */
|
||||
fn LLVMRustPrintPassTimings();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue