summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/Linkage.h
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-04-28 22:17:59 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-04-28 22:17:59 +0000
commitf5563f573675f1b0b30884185cc52e611e97bd6c (patch)
tree6c0d74c4d1ca31c07c2830b15b7b7f5d9d7503ea /include/clang/Basic/Linkage.h
parentec47c9130c83eabfa9460651da30eefeac297f62 (diff)
CodeGen: Fix linkage of reference temporaries
Summary: A reference temporary should inherit the linkage of the variable it initializes. Otherwise, we may hit cases where a reference temporary wouldn't have the same value in all translation units. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3515 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Linkage.h')
-rw-r--r--include/clang/Basic/Linkage.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/clang/Basic/Linkage.h b/include/clang/Basic/Linkage.h
index 247c6e714f..e19a9f8a1f 100644
--- a/include/clang/Basic/Linkage.h
+++ b/include/clang/Basic/Linkage.h
@@ -59,10 +59,9 @@ enum LanguageLinkage {
/// This is relevant to CodeGen and AST file reading.
enum GVALinkage {
GVA_Internal,
- GVA_C99Inline,
- GVA_CXXInline,
+ GVA_AvailableExternally,
+ GVA_DiscardableODR,
GVA_StrongExternal,
- GVA_TemplateInstantiation,
GVA_StrongODR
};