summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/comdat.ll
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-07-13 04:56:11 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-07-13 04:56:11 +0000
commitebc741168bc0bd25666282979b318370477bd405 (patch)
treec7427b5e0b87f34d55db94ead57914cc0984499d /llvm/test/Feature/comdat.ll
parent299674e94fe67203866fe2a9c60b2172bee5f915 (diff)
downloadbcm5719-llvm-ebc741168bc0bd25666282979b318370477bd405.tar.gz
bcm5719-llvm-ebc741168bc0bd25666282979b318370477bd405.zip
IR: Allow comdats to be applied to globals with internal linkage
Our verifier check for checking if a global has local linkage was too strict. Forbid private linkage but permit local linkage. Object file formats permit this and forbidding it prevents elimination of unused, internal, vftables under the MSVC ABI. llvm-svn: 212900
Diffstat (limited to 'llvm/test/Feature/comdat.ll')
-rw-r--r--llvm/test/Feature/comdat.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/Feature/comdat.ll b/llvm/test/Feature/comdat.ll
index 05fb87c648e..1e878bb71cd 100644
--- a/llvm/test/Feature/comdat.ll
+++ b/llvm/test/Feature/comdat.ll
@@ -16,3 +16,6 @@ define void @f() comdat $f {
ret void
}
; CHECK: define void @f() comdat $f
+
+$i = comdat largest
+@i = internal global i32 0, comdat $i
OpenPOWER on IntegriCloud