|
Revision 1644:9176437d98be, 401 bytes
(checked in by Matti Niemenmaa <matti.niemenmaa+hg@iki.fi>, 2 years ago)
|
Add -linkonce-templates for emitting linkonce_odr syms instead of weak_odr.
|
| Line | |
|---|
| 1 |
#ifndef LDC_GEN_LINKAGE_H |
|---|
| 2 |
#define LDC_GEN_LINKAGE_H |
|---|
| 3 |
|
|---|
| 4 |
#include "gen/llvm.h" |
|---|
| 5 |
|
|---|
| 6 |
// Make it easier to test new linkage types |
|---|
| 7 |
|
|---|
| 8 |
# define TYPEINFO_LINKAGE_TYPE LLGlobalValue::LinkOnceODRLinkage |
|---|
| 9 |
// The One-Definition-Rule shouldn't matter for debug info, right? |
|---|
| 10 |
# define DEBUGINFO_LINKONCE_LINKAGE_TYPE LLGlobalValue::LinkOnceAnyLinkage |
|---|
| 11 |
|
|---|
| 12 |
extern LLGlobalValue::LinkageTypes templateLinkage; |
|---|
| 13 |
|
|---|
| 14 |
#endif |
|---|