summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/Linkage.h
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-04-02 23:17:29 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-04-02 23:17:29 +0000
commit011e0521dc350be64be25c38c7737eebe50589ba (patch)
treef0463b180f9039e455d8cf37fc0eb5d0974d5b7d /include/clang/Basic/Linkage.h
parente7ba0820c79507fb39f97d8e773cb99d79377b04 (diff)
CodeGen: Emit some functions as weak_odr under -fms-compatibility
Summary: MSVC always emits inline functions marked with the extern storage class specifier. The result is something similar to the opposite of __attribute__((gnu_inline)). This extension is also available in C. This fixes PR19264. Reviewers: rnk, rsmith CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D3207 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Linkage.h')
-rw-r--r--include/clang/Basic/Linkage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Basic/Linkage.h b/include/clang/Basic/Linkage.h
index 699620784e..247c6e714f 100644
--- a/include/clang/Basic/Linkage.h
+++ b/include/clang/Basic/Linkage.h
@@ -63,7 +63,7 @@ enum GVALinkage {
GVA_CXXInline,
GVA_StrongExternal,
GVA_TemplateInstantiation,
- GVA_ExplicitTemplateInstantiation
+ GVA_StrongODR
};
inline bool isExternallyVisible(Linkage L) {