Careful with reg_sequence coalescing to not to overwrite sub-register indices.
[oota-llvm.git] / lib / CodeGen / MachineDominators.cpp
index 78de02abc1b42c15386f79bb34c23393427c7a47..408873903b0d96b17ca7495a844a3fda47c424c3 100644 (file)
 
 using namespace llvm;
 
+namespace llvm {
 TEMPLATE_INSTANTIATION(class DomTreeNodeBase<MachineBasicBlock>);
 TEMPLATE_INSTANTIATION(class DominatorTreeBase<MachineBasicBlock>);
+}
 
 char MachineDominatorTree::ID = 0;
 
@@ -52,7 +54,6 @@ void MachineDominatorTree::releaseMemory() {
   DT->releaseMemory();
 }
 
-void MachineDominatorTree::print(std::ostream &OS, const Module*) const {
-  raw_os_ostream OSS(OS);
-  DT->print(OSS);
+void MachineDominatorTree::print(raw_ostream &OS, const Module*) const {
+  DT->print(OS);
 }