debuginfo: Fix issue with unique type IDs not being passed to LLVM for LLVM 3.4
This commit is contained in:
@@ -318,7 +318,7 @@ extern "C" LLVMValueRef LLVMDIBuilderCreateStructType(
|
||||
unwrapDI<DIArray>(Elements),
|
||||
RunTimeLang,
|
||||
unwrapDI<DIType>(VTableHolder)
|
||||
#if LLVM_VERSION_MINOR >= 5
|
||||
#if LLVM_VERSION_MINOR >= 4
|
||||
,UniqueId
|
||||
#endif
|
||||
));
|
||||
@@ -510,7 +510,7 @@ extern "C" LLVMValueRef LLVMDIBuilderCreateUnionType(
|
||||
Flags,
|
||||
unwrapDI<DIArray>(Elements),
|
||||
RunTimeLang
|
||||
#if LLVM_VERSION_MINOR >= 5
|
||||
#if LLVM_VERSION_MINOR >= 4
|
||||
,UniqueId
|
||||
#endif
|
||||
));
|
||||
@@ -734,6 +734,11 @@ LLVMVersionMinor() {
|
||||
return LLVM_VERSION_MINOR;
|
||||
}
|
||||
|
||||
extern "C" int
|
||||
LLVMVersionMajor() {
|
||||
return LLVM_VERSION_MAJOR;
|
||||
}
|
||||
|
||||
// Note that the two following functions look quite similar to the
|
||||
// LLVMGetSectionName function. Sadly, it appears that this function only
|
||||
// returns a char* pointer, which isn't guaranteed to be null-terminated. The
|
||||
|
||||
Reference in New Issue
Block a user