Update to XCode 11. (#3375)

This commit is contained in:
Nikolay Igotti
2019-09-27 14:18:59 +03:00
committed by GitHub
parent 5ee98cb443
commit 0123dc955a
124 changed files with 3990 additions and 3238 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ model {
binaries.withType(StaticLibraryBinarySpec) { binary ->
if (!project.parent.convention.plugins.platformInfo.isWindows())
cppCompiler.args "-fPIC"
cppCompiler.args "--std=c++11", "-I${llvmDir}/include", "-I${projectDir}/src/main/include"
cppCompiler.args "--std=c++14", "-I${llvmDir}/include", "-I${projectDir}/src/main/include"
linker.args "-L${llvmDir}/lib", "-lLLVMCore", "-lLLVMSupport"
}
binaries.withType(SharedLibraryBinarySpec) { binary ->
+16 -11
View File
@@ -23,7 +23,7 @@
#include <llvm/Support/Casting.h>
#include "DebugInfoC.h"
/**
* c++ --std=c++11 llvmDebugInfoC/src/DebugInfoC.cpp -IllvmDebugInfoC/include/ -Idependencies/all/clang+llvm-3.9.0-darwin-macos/include -Ldependencies/all/clang+llvm-3.9.0-darwin-macos/lib -lLLVMCore -lLLVMSupport -lncurses -shared -o libLLVMDebugInfoC.dylib
* c++ --std=c++14 llvmDebugInfoC/src/DebugInfoC.cpp -IllvmDebugInfoC/include/ -Idependencies/all/clang+llvm-3.9.0-darwin-macos/include -Ldependencies/all/clang+llvm-3.9.0-darwin-macos/lib -lLLVMCore -lLLVMSupport -lncurses -shared -o libLLVMDebugInfoC.dylib
*/
namespace llvm {
@@ -84,20 +84,25 @@ DIModuleRef DICreateModule(DIBuilderRef builder, DIScopeOpaqueRef scope,
return llvm::wrap(llvm::unwrap(builder)->createModule(llvm::unwrap(scope), name, configurationMacro, includePath, iSysRoot));
}
DISubprogramRef DICreateFunction(DIBuilderRef builder, DIScopeOpaqueRef scope,
DISubprogramRef DICreateFunction(DIBuilderRef builderRef, DIScopeOpaqueRef scope,
const char* name, const char *linkageName,
DIFileRef file, unsigned lineNo,
DISubroutineTypeRef type, int isLocal,
int isDefinition, unsigned scopeLine) {
return llvm::wrap(llvm::unwrap(builder)->createFunction(llvm::unwrap(scope),
name,
linkageName,
llvm::unwrap(file),
lineNo,
llvm::unwrap(type),
isLocal,
isDefinition,
scopeLine));
auto builder = llvm::unwrap(builderRef);
auto subprogram = builder->createFunction(llvm::unwrap(scope),
name,
linkageName,
llvm::unwrap(file),
lineNo,
llvm::unwrap(type),
scopeLine, llvm::DINode::DIFlags::FlagZero, llvm::DISubprogram::toSPFlags(false, true, false));
auto tmp = subprogram->getRetainedNodes().get();
if (!tmp && tmp->isTemporary())
llvm::MDTuple::deleteTemporary(tmp);
builder->finalizeSubprogram(subprogram);
return llvm::wrap(subprogram);
}
DIScopeOpaqueRef DICreateLexicalBlockFile(DIBuilderRef builderRef, DIScopeOpaqueRef scopeRef, DIFileRef fileRef) {
+1 -1
View File
@@ -33,7 +33,7 @@ typedef struct DISubprogram *DISubprogramRef;
typedef struct DIModule *DIModuleRef;
typedef struct DIScope *DIScopeOpaqueRef;
typedef struct DISubroutineType *DISubroutineTypeRef;
typedef struct DISubprogram *DISubprogramRef;
//typedef struct DISubprogram *DISubprogramRef;
typedef struct DILocation *DILocationRef;
typedef struct DILocalVariable *DILocalVariableRef;
typedef struct DIExpression *DIExpressionRef;