diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-01-19 15:16:06 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-01-19 15:16:06 +0000 |
commit | 12ca34f53ff8449283fc6a0e1c6ab1f739f3158f (patch) | |
tree | 7111e41e96418557739ded39df43dfda8ea85583 /llvm/test/Bitcode | |
parent | cc5e40811b1572b0a1d19ab370cabf1efe6c4f39 (diff) | |
download | bcm5719-llvm-12ca34f53ff8449283fc6a0e1c6ab1f739f3158f.tar.gz bcm5719-llvm-12ca34f53ff8449283fc6a0e1c6ab1f739f3158f.zip |
Bring r226038 back.
No change in this commit, but clang was changed to also produce trivial comdats when
needed.
Original message:
Don't create new comdats in CodeGen.
This patch stops the implicit creation of comdats during codegen.
Clang now sets the comdat explicitly when it is required. With this patch clang and gcc
now produce the same result in pr19848.
llvm-svn: 226467
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/linkage-types-3.2.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/Bitcode/linkage-types-3.2.ll b/llvm/test/Bitcode/linkage-types-3.2.ll index e255b619f41..fb6cc5745fa 100644 --- a/llvm/test/Bitcode/linkage-types-3.2.ll +++ b/llvm/test/Bitcode/linkage-types-3.2.ll @@ -33,13 +33,13 @@ ; CHECK: @available_externally.var = available_externally constant i32 0{{$}} @linkonce.var = linkonce constant i32 0 -; CHECK: @linkonce.var = linkonce constant i32 0{{$}} +; CHECK: @linkonce.var = linkonce constant i32 0, comdat{{$}} @weak.var = weak constant i32 0 -; CHECK: @weak.var = weak constant i32 0{{$}} +; CHECK: @weak.var = weak constant i32 0, comdat{{$}} @linkonce_odr.var = linkonce_odr constant i32 0 -; CHECK: @linkonce_odr.var = linkonce_odr constant i32 0{{$}} +; CHECK: @linkonce_odr.var = linkonce_odr constant i32 0, comdat{{$}} @linkonce_odr_auto_hide.var = linkonce_odr_auto_hide constant i32 0 ; CHECK: @linkonce_odr_auto_hide.var = constant i32 0{{$}} @@ -90,19 +90,19 @@ define available_externally void @available_externally() } define linkonce void @linkonce() -; CHECK: define linkonce void @linkonce() { +; CHECK: define linkonce void @linkonce() comdat { { ret void } define weak void @weak() -; CHECK: define weak void @weak() { +; CHECK: define weak void @weak() comdat { { ret void } define linkonce_odr void @linkonce_odr() -; CHECK: define linkonce_odr void @linkonce_odr() { +; CHECK: define linkonce_odr void @linkonce_odr() comdat { { ret void } |