mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 19:36:06 +03:00
fix build against LLVM trunk svn rev 273030
This commit is contained in:
parent
235f392ec8
commit
f9995b1883
6 changed files with 28 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue