From c77f1d47f8e2bf2d6ef671da2f9d31a62e4db201 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 29 Jan 2012 23:10:39 -0800 Subject: [PATCH] rustc: Add some missing llvm defs. Fix comments --- src/comp/lib/llvm.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 1ef6ccca41b..8238ffd279f 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -60,17 +60,19 @@ const LLVMOptimizeForSizeAttribute: uint = 8192u; const LLVMStackProtectAttribute: uint = 16384u; const LLVMStackProtectReqAttribute: uint = 32768u; -const LLVMAlignmentAttribute: uint = 2031616u; // 31 << 16 +const LLVMAlignmentAttribute: uint = 2031616u; const LLVMNoCaptureAttribute: uint = 2097152u; const LLVMNoRedZoneAttribute: uint = 4194304u; const LLVMNoImplicitFloatAttribute: uint = 8388608u; const LLVMNakedAttribute: uint = 16777216u; const LLVMInlineHintAttribute: uint = 33554432u; -const LLVMStackAttribute: uint = 469762048u; // 7 << 26 -const LLVMUWTableAttribute: uint = 1073741824u; +const LLVMStackAttribute: uint = 469762048u; +const LLVMReturnsTwiceAttribute: uint = 536870912u; // 1 << 30 +const LLVMUWTableAttribute: uint = 1073741824u; +const LLVMNonLazyBindAttribute: uint = 2147483648u; // Consts for the LLVM IntPredicate type, pre-cast to uint.