From ce325fdb87b029cdc6fc21088e40648cfb68ce54 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 19 Mar 2005 22:12:03 +0000 Subject: [PATCH] add a method to clear globals from a node git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20693 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DataStructure/DSNode.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index b6f343fe4f3..beff5e40610 100644 --- a/include/llvm/Analysis/DataStructure/DSNode.h +++ b/include/llvm/Analysis/DataStructure/DSNode.h @@ -284,6 +284,7 @@ public: /// void addGlobal(GlobalValue *GV); void mergeGlobals(const std::vector &RHS); + void clearGlobals() { std::vector().swap(Globals); } const std::vector &getGlobals() const { return Globals; } typedef std::vector::const_iterator global_iterator;