ΒΆllvm::Value* emitStrDup(
    llvm::Value* Ptr,
    IRBuilder<>& B,
    const llvm::TargetLibraryInfo* TLI)

Description

Emit a call to the strdup function to the builder, for the specified pointer. Ptr is required to be some pointer type, and the return value has 'i8*' type.

Declared at: llvm/include/llvm/Transforms/Utils/BuildLibCalls.h:56

Parameters

llvm::Value* Ptr
IRBuilder<>& B
const llvm::TargetLibraryInfo* TLI