Output to cerr rather than cout so that debug info doesn't mess up assembly generation
llvm-svn: 840
diff --git a/llvm/lib/Target/Sparc/SparcInternals.h b/llvm/lib/Target/Sparc/SparcInternals.h
index ad0f17f..812378c 100644
--- a/llvm/lib/Target/Sparc/SparcInternals.h
+++ b/llvm/lib/Target/Sparc/SparcInternals.h
@@ -269,17 +269,14 @@
else if( ty <= Type::DoubleTyID)
res = FloatRegClassID; // sparc float reg class
else {
- cout << "TypeID: " << ty << endl;
+ cerr << "TypeID: " << ty << endl;
assert(0 && "Cannot resolve register class for type");
-
}
if(isCCReg)
return res + 2; // corresponidng condition code regiser
-
else
return res;
-
}
// returns the register tha contains always zero