mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
7dab15def6
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2046 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
486 B
C++
18 lines
486 B
C++
|
|
|
|
#ifndef LLVM_TRANSFORMS_CLONE_FUNCTION_H
|
|
#define LLVM_TRANSFORMS_CLONE_FUNCTION_H
|
|
|
|
#include <vector>
|
|
class Function;
|
|
class Value;
|
|
|
|
// Clone OldFunc into NewFunc, transforming the old arguments into references to
|
|
// ArgMap values. Note that if NewFunc already has basic blocks, the ones
|
|
// cloned into it will be added to the end of the function.
|
|
//
|
|
void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
|
const std::vector<Value*> &ArgMap);
|
|
|
|
#endif
|