pave the road for function pointers

See #14
This commit is contained in:
Andrew Kelley
2016-01-18 08:50:10 -07:00
parent 4c50606b9d
commit 3a326d5005
7 changed files with 110 additions and 137 deletions

View File

@@ -388,6 +388,11 @@ LLVMZigDIScope *LLVMZigSubprogramToScope(LLVMZigDISubprogram *subprogram) {
return reinterpret_cast<LLVMZigDIScope*>(scope);
}
LLVMZigDIType *LLVMZigSubroutineToType(LLVMZigDISubroutineType *subrtype) {
DIType *di_type = reinterpret_cast<DISubroutineType*>(subrtype);
return reinterpret_cast<LLVMZigDIType*>(di_type);
}
LLVMZigDIScope *LLVMZigTypeToScope(LLVMZigDIType *type) {
DIScope *scope = reinterpret_cast<DIType*>(type);
return reinterpret_cast<LLVMZigDIScope*>(scope);