LLVM API Documentation

Functions
CloneFunction.cpp File Reference
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/InstructionSimplify.h"
#include "llvm/IR/CFG.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/Transforms/Utils/ValueMapper.h"
#include <map>
Include dependency graph for CloneFunction.cpp:

Go to the source code of this file.

Functions

static MDNodeFindSubprogram (const Function *F, DebugInfoFinder &Finder)
static void AddOperand (MDNode *Node, Value *Operand)
static void CloneDebugInfoMetadata (Function *NewFunc, const Function *OldFunc, ValueToValueMapTy &VMap)

Function Documentation

static void AddOperand ( MDNode Node,
Value Operand 
) [static]
static void CloneDebugInfoMetadata ( Function NewFunc,
const Function OldFunc,
ValueToValueMapTy VMap 
) [static]
static MDNode* FindSubprogram ( const Function F,
DebugInfoFinder Finder 
) [static]

Definition at line 158 of file CloneFunction.cpp.

References llvm::DebugInfoFinder::subprograms().

Referenced by CloneDebugInfoMetadata().