mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-17 21:33:13 +01:00
LLVM 3.3: class Attributes is renamed to Attribute.
Some other renamings took place in "llvm/Attributes.h" but only this causes compile errors in LDC. Also uses new location of "llvm/IRBuilder.h".
This commit is contained in:
@@ -27,7 +27,11 @@
|
||||
#include "llvm/Intrinsics.h"
|
||||
#include "llvm/Support/CallSite.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#if LDC_LLVM_VER >= 303
|
||||
#include "llvm/IRBuilder.h"
|
||||
#else
|
||||
#include "llvm/Support/IRBuilder.h"
|
||||
#endif
|
||||
#include "llvm/Analysis/CallGraph.h"
|
||||
#include "llvm/Analysis/Dominators.h"
|
||||
#include "llvm/Analysis/ValueTracking.h"
|
||||
@@ -716,7 +720,9 @@ bool isSafeToStackAllocate(Instruction* Alloc, Value* V, DominatorTree& DT,
|
||||
for (CallSite::arg_iterator A = B; A != E; ++A)
|
||||
if (A->get() == V) {
|
||||
if (!CS.paramHasAttr(A - B + 1,
|
||||
#if LDC_LLVM_VER >= 302
|
||||
#if LDC_LLVM_VER >= 303
|
||||
Attribute::NoCapture
|
||||
#elif LDC_LLVM_VER == 302
|
||||
Attributes::NoCapture
|
||||
#else
|
||||
Attribute::NoCapture
|
||||
|
||||
Reference in New Issue
Block a user