aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-05-19 19:17:48 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-05-19 19:17:48 +0000
commit2b6d2eb2d0e44eb8d897fce107961767b9676a79 (patch)
tree80c5bc13c50666cf2b165c6c959f20547a7d2162 /include/llvm/Transforms
parentc58a7f4b3ca69c0f3b827ec6ca2664603570d7d6 (diff)
downloadexternal_llvm-2b6d2eb2d0e44eb8d897fce107961767b9676a79.zip
external_llvm-2b6d2eb2d0e44eb8d897fce107961767b9676a79.tar.gz
external_llvm-2b6d2eb2d0e44eb8d897fce107961767b9676a79.tar.bz2
Declare function defined in namespace llvm as gcc-3.4 doesn't accept a definition in a namespace of a non-declared function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/Utils/Cloning.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Cloning.h b/include/llvm/Transforms/Utils/Cloning.h
index bb8e542..d17b525 100644
--- a/include/llvm/Transforms/Utils/Cloning.h
+++ b/include/llvm/Transforms/Utils/Cloning.h
@@ -31,6 +31,7 @@ class CallInst;
class InvokeInst;
class ReturnInst;
class CallSite;
+class Trace;
/// CloneModule - Return an exact copy of the specified module
///
@@ -95,6 +96,13 @@ void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
const char *NameSuffix = "");
+/// CloneTraceInto - Clone T into NewFunc. Original<->clone mapping is
+/// saved in ValueMap.
+///
+void CloneTraceInto(Function *NewFunc, Trace &T,
+ std::map<const Value*, Value*> &ValueMap,
+ const char *NameSuffix);
+
/// InlineFunction - This function inlines the called function into the basic
/// block of the caller. This returns false if it is not possible to inline
/// this call. The program is still in a well defined state if this occurs