comparison gen/linkage.h @ 1644:9176437d98be

Add -linkonce-templates for emitting linkonce_odr syms instead of weak_odr.
author Matti Niemenmaa <matti.niemenmaa+hg@iki.fi>
date Tue, 09 Mar 2010 23:07:08 +0200
parents f49cb50c6064
children
comparison
equal deleted inserted replaced
1643:8f121883bce8 1644:9176437d98be
1 #ifndef LDC_GEN_LINKAGE_H 1 #ifndef LDC_GEN_LINKAGE_H
2 #define LDC_GEN_LINKAGE_H 2 #define LDC_GEN_LINKAGE_H
3 3
4 #include "gen/llvm.h"
5
4 // Make it easier to test new linkage types 6 // Make it easier to test new linkage types
5 7
6 # define TEMPLATE_LINKAGE_TYPE llvm::GlobalValue::WeakODRLinkage 8 # define TYPEINFO_LINKAGE_TYPE LLGlobalValue::LinkOnceODRLinkage
7 # define TYPEINFO_LINKAGE_TYPE llvm::GlobalValue::LinkOnceODRLinkage
8 // The One-Definition-Rule shouldn't matter for debug info, right? 9 // The One-Definition-Rule shouldn't matter for debug info, right?
9 # define DEBUGINFO_LINKONCE_LINKAGE_TYPE \ 10 # define DEBUGINFO_LINKONCE_LINKAGE_TYPE LLGlobalValue::LinkOnceAnyLinkage
10 llvm::GlobalValue::LinkOnceAnyLinkage
11 11
12 extern LLGlobalValue::LinkageTypes templateLinkage;
12 13
13 #endif 14 #endif