add a method to clear globals from a node

llvm-svn: 20693
This commit is contained in:
Chris Lattner 2005-03-19 22:12:03 +00:00
parent 300dc0bc90
commit 6c5b90f36c
1 changed files with 1 additions and 0 deletions

View File

@ -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;