Remove unused debug info functions.
These functions return the underlying buffer for a std::string which you should never do as it is only valid while the std::string is in scope.
This commit is contained in:
committed by
SvyatoslavScherbina
parent
3d4e025602
commit
876cc472b4
@@ -281,15 +281,6 @@ LLVMValueRef LLVMBuilderGetCurrentFunction(LLVMBuilderRef builder) {
|
||||
return llvm::wrap(llvm::unwrap(builder)->GetInsertBlock()->getParent());
|
||||
}
|
||||
|
||||
const char* LLVMBuilderGetCurrentBbName(LLVMBuilderRef builder) {
|
||||
return llvm::unwrap(builder)->GetInsertBlock()->getName().str().c_str();
|
||||
}
|
||||
|
||||
|
||||
const char *DIGetSubprogramLinkName(DISubprogramRef sp) {
|
||||
return llvm::unwrap(sp)->getLinkageName().str().c_str();
|
||||
}
|
||||
|
||||
int DISubprogramDescribesFunction(DISubprogramRef sp, LLVMValueRef fn) {
|
||||
return llvm::unwrap(sp)->describes(llvm::cast<llvm::Function>(llvm::unwrap(fn)));
|
||||
}
|
||||
|
||||
@@ -106,8 +106,6 @@ DILocationRef LLVMCreateLocation(LLVMContextRef contextRef, unsigned line, unsig
|
||||
DILocationRef LLVMCreateLocationInlinedAt(LLVMContextRef contextRef, unsigned line, unsigned col, DIScopeOpaqueRef scope, DILocationRef refLocation);
|
||||
void LLVMBuilderSetDebugLocation(LLVMBuilderRef builder, DILocationRef refLocation);
|
||||
void LLVMBuilderResetDebugLocation(LLVMBuilderRef builder);
|
||||
const char* LLVMBuilderGetCurrentBbName(LLVMBuilderRef builder);
|
||||
const char *DIGetSubprogramLinkName(DISubprogramRef sp);
|
||||
LLVMValueRef LLVMBuilderGetCurrentFunction(LLVMBuilderRef builder);
|
||||
int DISubprogramDescribesFunction(DISubprogramRef sp, LLVMValueRef fn);
|
||||
# ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user