Skip to content

Commit 7414d88

Browse files
committed
Squelch an unused-function warning
After removing some debug-intrinsic creation code, this function is now unused (and un-necessary)
1 parent 621a7d0 commit 7414d88

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/IR/DIBuilder.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,10 +1069,6 @@ static Value *getDbgIntrinsicValueImpl(LLVMContext &VMContext, Value *V) {
10691069
return MetadataAsValue::get(VMContext, ValueAsMetadata::get(V));
10701070
}
10711071

1072-
static Function *getDeclareIntrin(Module &M) {
1073-
return Intrinsic::getOrInsertDeclaration(&M, Intrinsic::dbg_declare);
1074-
}
1075-
10761072
DbgInstPtr DIBuilder::insertDbgValueIntrinsic(llvm::Value *Val,
10771073
DILocalVariable *VarInfo,
10781074
DIExpression *Expr,

0 commit comments

Comments
 (0)