summaryrefslogtreecommitdiffstats
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
commitc5bd926a62f57ea773e6dc9028b9c0804ffd40fc (patch)
treeebe99b44af44b7f9d5eb07d6d08705f4d8b05a40
parent72185765bc413634c5c9d4527d1e9bab862e8849 (diff)
downloadbcm5719-llvm-c5bd926a62f57ea773e6dc9028b9c0804ffd40fc.tar.gz
bcm5719-llvm-c5bd926a62f57ea773e6dc9028b9c0804ffd40fc.zip
Declare function defined in namespace llvm as gcc-3.4 doesn't accept a definition in a namespace of a non-declared function.
llvm-svn: 13602
-rw-r--r--llvm/include/llvm/Transforms/Utils/Cloning.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/Transforms/Utils/Cloning.h b/llvm/include/llvm/Transforms/Utils/Cloning.h
index bb8e542b805..d17b52568a9 100644
--- a/llvm/include/llvm/Transforms/Utils/Cloning.h
+++ b/llvm/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
OpenPOWER on IntegriCloud