view gen/linkage.h @ 1365:65505c9d70f5

Added explicit alignment for aggregate __initZ symbols, this is needed for some union types, or the default initializer symbol might be misaligned.
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Sat, 16 May 2009 18:25:01 +0200
parents 3647bef175d7
children 11b122f92136
line wrap: on
line source

#ifndef LDC_GEN_LINKAGE_H
#define LDC_GEN_LINKAGE_H

// Make it easier to test new linkage types

#  define TEMPLATE_LINKAGE_TYPE         llvm::GlobalValue::LinkOnceODRLinkage
#  define TYPEINFO_LINKAGE_TYPE         llvm::GlobalValue::LinkOnceODRLinkage
// The One-Definition-Rule shouldn't matter for debug info, right?
#  define DEBUGINFO_LINKONCE_LINKAGE_TYPE \
                                        llvm::GlobalValue::LinkOnceAnyLinkage


#endif