This function can be static
authorChris Lattner <sabre@nondot.org>
Sun, 20 Oct 2002 20:39:31 +0000 (20:39 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 20 Oct 2002 20:39:31 +0000 (20:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4234 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/DataStructure.cpp

index ecfed8dd68802ca7a43e78a6988c9b54e898ca19..3a55c5420b16eed749eceeb8e0bb688a12eaca33 100644 (file)
@@ -394,8 +394,8 @@ DSGraph::~DSGraph() {
 void DSGraph::dump() const { print(std::cerr); }
 
 
-DSNodeHandle copyHelper(const DSNodeHandle* fromNode,
-                        std::map<const DSNode*, DSNode*> *NodeMap) {
+static DSNodeHandle copyHelper(const DSNodeHandle* fromNode,
+                               std::map<const DSNode*, DSNode*> *NodeMap) {
   return DSNodeHandle((*NodeMap)[fromNode->getNode()], fromNode->getOffset());
 }