debuginfo: Added description of algorithm for handling recursive types.

Also fixed nasty bug caused by calling LLVMDIBuilderCreateStructType() with a null pointer where an empty array was expected (which would trigger an unintelligable assertion somewhere down the line).
This commit is contained in:
Michael Woerister 2013-09-13 16:26:35 +02:00
parent 1ce02e7144
commit ccb721a58d
4 changed files with 71 additions and 111 deletions

View file

@ -790,29 +790,6 @@ extern "C" LLVMValueRef LLVMDIBuilderCreateNameSpace(
LineNo));
}
// extern "C" LLVMValueRef LLVMDIBuilderCreateForwardDecl(
// DIBuilderRef Builder,
// unsigned Tag,
// const char* Name,
// LLVMValueRef Scope,
// LLVMValueRef File,
// unsigned Line,
// unsigned RuntimeLang,
// uint64_t SizeInBits,
// uint64_t AlignInBits)
// {
// return wrap(Builder->createForwardDecl(
// Tag,
// Name,
// unwrapDI<DIDescriptor>(Scope),
// unwrapDI<DIFile>(File),
// Line,
// RuntimeLang,
// SizeInBits,
// AlignInBits
// ));
// }
extern "C" void LLVMDICompositeTypeSetTypeArray(
LLVMValueRef CompositeType,
LLVMValueRef TypeArray)