Declare all Rust functions as unnamed_addr. Closes #8957
This commit is contained in:
parent
6789a77fa0
commit
2992720c9b
@ -182,6 +182,8 @@ pub fn decl_fn(llmod: ModuleRef, name: &str, cc: lib::llvm::CallConv, ty: Type)
|
||||
};
|
||||
|
||||
lib::llvm::SetFunctionCallConv(llfn, cc);
|
||||
// Function addresses in Rust are never significant, allowing functions to be merged.
|
||||
lib::llvm::SetUnnamedAddr(llfn, true);
|
||||
return llfn;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user