Mercurial > projects > ldc
view gen/linkage.h @ 1354:701d11a1e7b1
Re-apply [1346], which was reverted in [1348], now that padding should no longer
be a problem.
As noted before, this will break ABI-compatibility on x86-64, so recompile old
code before linking with newly-compiled code if you're on x86-64.
As an added bonus, I actually tested it this time :).
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Thu, 14 May 2009 20:40:56 +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