mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00

This uses the LLVM style, which makes sense for sharing code with other LLVM projects. The DMD code we use will soon all be in D anyway.
27 lines
867 B
C++
27 lines
867 B
C++
//===-- gen/linkage.h - Common linkage types --------------------*- C++ -*-===//
|
||
//
|
||
// LDC – the LLVM D compiler
|
||
//
|
||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||
// file for details.
|
||
//
|
||
//===----------------------------------------------------------------------===//
|
||
//
|
||
// Linkage types used for certain constructs (templates, TypeInfo).
|
||
//
|
||
//===----------------------------------------------------------------------===//
|
||
|
||
#ifndef LDC_GEN_LINKAGE_H
|
||
#define LDC_GEN_LINKAGE_H
|
||
|
||
#include "gen/llvm.h"
|
||
|
||
// Make it easier to test new linkage types
|
||
|
||
#define TYPEINFO_LINKAGE_TYPE LLGlobalValue::LinkOnceODRLinkage
|
||
// The One-Definition-Rule shouldn't matter for debug info, right?
|
||
#define DEBUGINFO_LINKONCE_LINKAGE_TYPE LLGlobalValue::LinkOnceAnyLinkage
|
||
|
||
extern LLGlobalValue::LinkageTypes templateLinkage;
|
||
|
||
#endif
|