Fix static relocation model for PowerPC64
We now also use `should_assume_dso_local()` for declarations and port two additional cases from clang: - Exclude PPC64 [1] - Exclude thread-local variables [2] [1]:033138ea45/clang/lib/CodeGen/CodeGenModule.cpp (L1038-L1040)
[2]:033138ea45/clang/lib/CodeGen/CodeGenModule.cpp (L1048-L1050)
This commit is contained in:
parent
e51830b90a
commit
4a76934aa7
6 changed files with 47 additions and 47 deletions
|
@ -72,7 +72,7 @@ pub enum Linkage {
|
|||
|
||||
// LLVMRustVisibility
|
||||
#[repr(C)]
|
||||
#[derive(Copy, Clone)]
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
pub enum Visibility {
|
||||
Default = 0,
|
||||
Hidden = 1,
|
||||
|
@ -1035,6 +1035,7 @@ extern "C" {
|
|||
pub fn LLVMDeleteGlobal(GlobalVar: &Value);
|
||||
pub fn LLVMGetInitializer(GlobalVar: &Value) -> Option<&Value>;
|
||||
pub fn LLVMSetInitializer(GlobalVar: &'a Value, ConstantVal: &'a Value);
|
||||
pub fn LLVMIsThreadLocal(GlobalVar: &Value) -> Bool;
|
||||
pub fn LLVMSetThreadLocal(GlobalVar: &Value, IsThreadLocal: Bool);
|
||||
pub fn LLVMSetThreadLocalMode(GlobalVar: &Value, Mode: ThreadLocalMode);
|
||||
pub fn LLVMIsGlobalConstant(GlobalVar: &Value) -> Bool;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue