add a method to clear globals from a node
llvm-svn: 20693
This commit is contained in:
parent
300dc0bc90
commit
6c5b90f36c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue