@@ -280,19 +280,22 @@ class TypeDebugInfoModule;
280
280
class SingleThreadedCompilationContext
281
281
{
282
282
public:
283
+ CorInfoLlvmSingleThreadedCompilationContextFlags Flags;
283
284
LLVMContext Context;
284
285
Module Module;
285
286
JitHashTable<CORINFO_CLASS_HANDLE, JitPtrKeyFuncs<CORINFO_CLASS_STRUCT_>, Type*, MallocAllocator> LlvmStructTypesMap = {{}};
286
287
JitHashTable<CORINFO_CLASS_HANDLE, JitPtrKeyFuncs<CORINFO_CLASS_STRUCT_>, StructDesc*, MallocAllocator> StructDescMap = {{}};
287
- JitHashTable<CORINFO_LLVM_DEBUG_TYPE_HANDLE, JitSmallPrimitiveKeyFuncs<CORINFO_LLVM_DEBUG_TYPE_HANDLE>, llvm::DIType*, MallocAllocator> DebugTypesMap = {{}};
288
288
TypeDebugInfoModule* DebugTypes = nullptr ;
289
289
290
- SingleThreadedCompilationContext (StringRef name) : Module(name, Context)
290
+ SingleThreadedCompilationContext (CorInfoLlvmSingleThreadedCompilationContextFlags flags, StringRef name)
291
+ : Flags(flags)
292
+ , Module(name, Context)
291
293
{
292
294
}
293
295
294
296
static CORINFO_LLVM_DEBUG_TYPE_HANDLE EmitDebugTypeInfo (SingleThreadedCompilationContext* context, CORINFO_LLVM_TYPE_DEBUG_INFO* pInfo);
295
297
static CORINFO_LLVM_DEBUG_METHOD_DECL_HANDLE EmitDebugMethodDecl (SingleThreadedCompilationContext* context, CORINFO_LLVM_METHOD_DECL_DEBUG_INFO* pInfo);
298
+ TypeDebugInfoModule* GetDebugTypes ();
296
299
void FinishDebugInfo ();
297
300
};
298
301
@@ -422,8 +425,6 @@ class Llvm
422
425
const char * GetAlternativeFunctionName ();
423
426
CORINFO_GENERIC_HANDLE GetExternalMethodAccessor (
424
427
CORINFO_METHOD_HANDLE methodHandle, const TargetAbiType* callSiteSig, int sigLength);
425
- CORINFO_LLVM_DEBUG_TYPE_HANDLE GetDebugTypeForType (CORINFO_CLASS_HANDLE typeHandle);
426
- void GetDebugInfoForDebugType (CORINFO_LLVM_DEBUG_TYPE_HANDLE debugTypeHandle, CORINFO_LLVM_TYPE_DEBUG_INFO* pInfo);
427
428
void GetDebugInfoForCurrentMethod (CORINFO_LLVM_METHOD_DEBUG_INFO* pInfo);
428
429
SingleThreadedCompilationContext* GetSingleThreadedCompilationContext ();
429
430
CorInfoLlvmEHModel GetExceptionHandlingModel ();
@@ -725,7 +726,6 @@ class Llvm
725
726
// ================================================================================================================
726
727
727
728
void initializeDebugInfo ();
728
- void initializeDebugInfoBuilder ();
729
729
void initializeDebugVariables (CORINFO_LLVM_METHOD_DEBUG_INFO* pInfo);
730
730
731
731
void declareDebugVariables ();
@@ -735,8 +735,5 @@ class Llvm
735
735
llvm::DILocation* getDebugLocation (unsigned lineNo);
736
736
llvm::DILocation* getArtificialDebugLocation ();
737
737
llvm::DILocation* getCurrentOrArtificialDebugLocation ();
738
-
739
- llvm::DIType* getOrCreateDebugType (CORINFO_LLVM_DEBUG_TYPE_HANDLE debugTypeHandle);
740
- llvm::DIType* createDebugType (CORINFO_LLVM_DEBUG_TYPE_HANDLE debugTypeHandle);
741
738
};
742
739
#endif /* End of _LLVM_H_ */
0 commit comments