diff options
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSNode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index b6f343fe4f..beff5e4061 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<GlobalValue*> &RHS); + void clearGlobals() { std::vector<GlobalValue*>().swap(Globals); } const std::vector<GlobalValue*> &getGlobals() const { return Globals; } typedef std::vector<GlobalValue*>::const_iterator global_iterator; |