aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-11 00:21:21 +0000
committerChris Lattner <sabre@nondot.org>2009-11-11 00:21:21 +0000
commit68cf6042c14ac649c6861bbd2d00993b15a5dfa6 (patch)
tree2bc73216ff9efd7798f4259113892e5573251618
parent2f105c6e18b1cf0507be74dd03779b675d254a30 (diff)
remove redundant foward declaration. This function is already in
Analysis/Passes.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86765 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/LiveValues.h6
-rw-r--r--lib/Analysis/LiveValues.cpp4
2 files changed, 4 insertions, 6 deletions
diff --git a/include/llvm/Analysis/LiveValues.h b/include/llvm/Analysis/LiveValues.h
index 31b00d73dd..b92cb7833a 100644
--- a/include/llvm/Analysis/LiveValues.h
+++ b/include/llvm/Analysis/LiveValues.h
@@ -94,10 +94,6 @@ public:
bool isKilledInBlock(const Value *V, const BasicBlock *BB);
};
-/// createLiveValuesPass - This creates an instance of the LiveValues pass.
-///
-FunctionPass *createLiveValuesPass();
-
-}
+} // end namespace llvm
#endif
diff --git a/lib/Analysis/LiveValues.cpp b/lib/Analysis/LiveValues.cpp
index 2bbe98aa5c..02ec7d318a 100644
--- a/lib/Analysis/LiveValues.cpp
+++ b/lib/Analysis/LiveValues.cpp
@@ -17,7 +17,9 @@
#include "llvm/Analysis/LoopInfo.h"
using namespace llvm;
-FunctionPass *llvm::createLiveValuesPass() { return new LiveValues(); }
+namespace llvm {
+ FunctionPass *createLiveValuesPass() { return new LiveValues(); }
+}
char LiveValues::ID = 0;
static RegisterPass<LiveValues>