Return an exact copy of the specified module.

Synopsis

Declared in <llvm/Transforms/Utils/Cloning.h>

std::unique_ptr<Module>
CloneModule(Module const& M);

Return Value

A new module that is an exact copy of M.

Parameters

Name

Description

M

Module to clone.

Created with MrDocs