summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/MicrosoftCXXABI.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-07-07 20:04:28 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-07-07 20:04:28 +0000
commit1283e9868d2c1cbf31a834bb5151af6d046c1cb3 (patch)
treed8a0ea5f202e996293ae22a4487e81b466174cad /clang/lib/CodeGen/MicrosoftCXXABI.cpp
parent77235d345eb11a3705fbb93196eb7817734402a9 (diff)
downloadbcm5719-llvm-1283e9868d2c1cbf31a834bb5151af6d046c1cb3.tar.gz
bcm5719-llvm-1283e9868d2c1cbf31a834bb5151af6d046c1cb3.zip
[modules ts] Basic for module linkage.
In addition to the formal linkage rules, the Modules TS includes cases where internal-linkage symbols within a module interface unit can be referenced from outside the module via exported inline functions / templates. We give such declarations "module-internal linkage", which is formally internal linkage, but results in an externally-visible symbol. llvm-svn: 307434
Diffstat (limited to 'clang/lib/CodeGen/MicrosoftCXXABI.cpp')
-rw-r--r--clang/lib/CodeGen/MicrosoftCXXABI.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/MicrosoftCXXABI.cpp b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
index e68a16e0bd5..78b510bb466 100644
--- a/clang/lib/CodeGen/MicrosoftCXXABI.cpp
+++ b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
@@ -3425,6 +3425,8 @@ static llvm::GlobalValue::LinkageTypes getLinkageForRTTI(QualType Ty) {
return llvm::GlobalValue::InternalLinkage;
case VisibleNoLinkage:
+ case ModuleInternalLinkage:
+ case ModuleLinkage:
case ExternalLinkage:
return llvm::GlobalValue::LinkOnceODRLinkage;
}
OpenPOWER on IntegriCloud