Add two new calling conventions for runtime calls
[oota-llvm.git] / lib / CodeGen / TargetRegisterInfo.cpp
index ffcee1f51dd82df4f2fe7ac223e7b88639e63620..5a1524364b6b5249bfa1f37f0db2a54334f8b53a 100644 (file)
@@ -73,6 +73,14 @@ void PrintRegUnit::print(raw_ostream &OS) const {
     OS << '~' << TRI->getName(*Roots);
 }
 
+void PrintVRegOrUnit::print(raw_ostream &OS) const {
+  if (TRI && TRI->isVirtualRegister(Unit)) {
+    OS << "%vreg" << TargetRegisterInfo::virtReg2Index(Unit);
+    return;
+  }
+  PrintRegUnit::print(OS);
+}
+
 /// getAllocatableClass - Return the maximal subclass of the given register
 /// class that is alloctable, or NULL.
 const TargetRegisterClass *