mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
ThinLTOBitcodeWriter: Clear comdats on filtered globals.
Differential Revision: https://reviews.llvm.org/D28839 llvm-svn: 292431
This commit is contained in:
parent
51627b9a75
commit
d5dff4ce3e
@ -200,6 +200,7 @@ void filterModule(
|
||||
continue;
|
||||
|
||||
F.deleteBody();
|
||||
F.setComdat(nullptr);
|
||||
F.clearMetadata();
|
||||
}
|
||||
|
||||
@ -209,6 +210,7 @@ void filterModule(
|
||||
|
||||
GV.setInitializer(nullptr);
|
||||
GV.setLinkage(GlobalValue::ExternalLinkage);
|
||||
GV.setComdat(nullptr);
|
||||
GV.clearMetadata();
|
||||
}
|
||||
|
||||
|
@ -12,9 +12,11 @@
|
||||
; BCA0: <GLOBALVAL_SUMMARY_BLOCK
|
||||
; BCA1-NOT: <GLOBALVAL_SUMMARY_BLOCK
|
||||
|
||||
$g = comdat any
|
||||
|
||||
; M0: @g = external global i8{{$}}
|
||||
; M1: @g = global i8 42, !type !0
|
||||
@g = global i8 42, !type !0
|
||||
; M1: @g = global i8 42, comdat, !type !0
|
||||
@g = global i8 42, comdat, !type !0
|
||||
|
||||
; M0: define i8* @f()
|
||||
; M1-NOT: @f()
|
||||
|
Loading…
Reference in New Issue
Block a user