Skip to content

Commit

Permalink
Integrate new arm patch and fix an LLVM bug
Browse files Browse the repository at this point in the history
Thanks @luqama!
  • Loading branch information
alexcrichton committed Aug 4, 2013
1 parent bb93930 commit 60e9507
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/librustc/lib/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub enum Attribute {
// Not added to LLVM yet, so may need to stay updated if LLVM changes.
// FIXME(#8199): if this changes, be sure to change the relevant constant
// down below
FixedStackSegment = 1 << 41,
// FixedStackSegment = 1 << 41,
}

// enum for the LLVM IntPredicate type
Expand Down Expand Up @@ -2124,10 +2124,12 @@ pub fn SetFunctionAttribute(Fn: ValueRef, attr: Attribute) {
// Furthermore, if we use a match of any sort then an LLVM
// assertion is generated!
pub fn SetFixedStackSegmentAttribute(Fn: ValueRef) {
unsafe {
let attr = 1u64 << 41;
let lower = attr & 0xffffffff;
let upper = (attr >> 32) & 0xffffffff;
llvm::LLVMAddFunctionAttr(Fn, lower as c_uint, upper as c_uint);
}
}
/* Memory-managed object interface to type handles. */

Expand Down
2 changes: 1 addition & 1 deletion src/llvm
Submodule llvm updated from e3abef to f67442

5 comments on commit 60e9507

@bors
Copy link
Contributor

@bors bors commented on 60e9507 Aug 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from thestinger
at alexcrichton@60e9507

@bors
Copy link
Contributor

@bors bors commented on 60e9507 Aug 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging alexcrichton/rust/llvm-upgrades = 60e9507 into auto

@bors
Copy link
Contributor

@bors bors commented on 60e9507 Aug 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alexcrichton/rust/llvm-upgrades = 60e9507 merged ok, testing candidate = 3d14470

@bors
Copy link
Contributor

@bors bors commented on 60e9507 Aug 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 3d14470

Please sign in to comment.