diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-07-07 20:04:28 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-07-07 20:04:28 +0000 |
commit | 1283e9868d2c1cbf31a834bb5151af6d046c1cb3 (patch) | |
tree | d8a0ea5f202e996293ae22a4487e81b466174cad /clang/lib/CodeGen/MicrosoftCXXABI.cpp | |
parent | 77235d345eb11a3705fbb93196eb7817734402a9 (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |