Start unification of master and llvm-3.1 branch.

This commit is contained in:
kai
2012-07-29 13:26:25 +02:00
parent 2addbd2b71
commit 9bf65bc9a2
3 changed files with 40 additions and 1 deletions

View File

@@ -2,7 +2,11 @@
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/Support/Dwarf.h"
#include "llvm/Support/FileSystem.h"
#if LDC_LLVM_VER == 300
#include "llvm/Support/PathV2.h"
#else
#include "llvm/Support/Path.h"
#endif
#include "declaration.h"
#include "module.h"
@@ -480,6 +484,9 @@ llvm::DISubprogram DtoDwarfSubProgram(FuncDeclaration* fd)
dwarfTypeDescription(retType, NULL), // type
fd->protection == PROTprivate, // is local to unit
gIR->dmodule == getDefinedModule(fd), // isdefinition
#if LDC_LLVM_VER >= 301
fd->loc.linnum, // FIXME: scope line
#endif
0, // Flags
false, // isOptimized
fd->ir.irFunc->func
@@ -508,6 +515,9 @@ llvm::DISubprogram DtoDwarfSubProgramInternal(const char* prettyname, const char
llvm::DIType(NULL), // return type. TODO: fill it up
true, // is local to unit
true // isdefinition
#if LDC_LLVM_VER >= 301
, 0 // FIXME: scope line
#endif
);
}