Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/llvm
Submodule llvm updated 1405 files
28 changes: 15 additions & 13 deletions src/rustc/lib/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ enum Linkage {
AvailableExternallyLinkage = 1,
LinkOnceAnyLinkage = 2,
LinkOnceODRLinkage = 3,
WeakAnyLinkage = 4,
WeakODRLinkage = 5,
AppendingLinkage = 6,
InternalLinkage = 7,
PrivateLinkage = 8,
DLLImportLinkage = 9,
DLLExportLinkage = 10,
ExternalWeakLinkage = 11,
GhostLinkage = 12,
CommonLinkage = 13,
LinkerPrivateLinkage = 14,
LinkerPrivateWeakLinkage = 15,
LinkerPrivateWeakDefAutoLinkage = 16,
LinkOnceODRAutoHideLinkage = 4,
WeakAnyLinkage = 5,
WeakODRLinkage = 6,
AppendingLinkage = 7,
InternalLinkage = 8,
PrivateLinkage = 9,
DLLImportLinkage = 10,
DLLExportLinkage = 11,
ExternalWeakLinkage = 12,
GhostLinkage = 13,
CommonLinkage = 14,
LinkerPrivateLinkage = 15,
LinkerPrivateWeakLinkage = 16,
}

enum Attribute {
Expand Down Expand Up @@ -91,6 +91,7 @@ enum IntPredicate {

// enum for the LLVM RealPredicate type
enum RealPredicate {
RealPredicateFalse = 0,
RealOEQ = 1,
RealOGT = 2,
RealOGE = 3,
Expand All @@ -105,6 +106,7 @@ enum RealPredicate {
RealULT = 12,
RealULE = 13,
RealUNE = 14,
RealPredicateTrue = 15,
}

// enum for the LLVM TypeKind type - must stay in sync with the def of
Expand Down
2 changes: 1 addition & 1 deletion src/rustc/middle/trans/closure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ fn trans_expr_fn(bcx: block,
let llfnty = type_of_fn_from_ty(ccx, fty);
let sub_path = vec::append_one(bcx.fcx.path,
path_name(special_idents::anon));
let s = mangle_internal_name_by_path(ccx, sub_path);
let s = mangle_internal_name_by_path_and_seq(ccx, sub_path, ~"expr_fn");
let llfn = decl_internal_cdecl_fn(ccx.llmod, s, llfnty);

let trans_closure_env = fn@(ck: ty::closure_kind) -> Result {
Expand Down