Joos1W Compiler Framework
All Classes Functions Typedefs Pages
Value.cc
1 #include "tir/TIR.h"
2 
3 namespace tir {
4 
5 void Value::dump() const { print(std::cerr) << "\n"; }
6 
7 void Value::replaceAllUsesWith(Value* newValue) {
8  for(auto user : users_) {
9  user->replaceChild(user->numChildren(), newValue);
10  }
11 }
12 
13 } // namespace tir