fix build against LLVM trunk svn rev 273030

This commit is contained in:
Rainer Schuetze 2016-06-18 10:54:23 +02:00
parent 235f392ec8
commit f9995b1883
6 changed files with 28 additions and 0 deletions

View file

@ -353,7 +353,11 @@ llvm::GlobalVariable *IrAggr::getInterfaceVtbl(BaseClass *b, bool new_instance,
// Thunks themselves don't have an identity, only the target
// function has.
#if LDC_LLVM_VER >= 309
thunk->setUnnamedAddr(llvm::GlobalValue::UnnamedAddr::Global);
#else
thunk->setUnnamedAddr(true);
#endif
#if LDC_LLVM_VER >= 307
// thunks don't need exception handling themselves