[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jun 17 13:25:06 PDT 2004
Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.181 -> 1.182
---
Log message:
Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()
---
Diffs of the changes: (+3 -3)
Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.181 llvm/lib/Target/CBackend/Writer.cpp:1.182
--- llvm/lib/Target/CBackend/Writer.cpp:1.181 Wed Jun 2 18:10:26 2004
+++ llvm/lib/Target/CBackend/Writer.cpp Thu Jun 17 13:17:37 2004
@@ -255,7 +255,7 @@
const std::string &NameSoFar,
bool IgnoreName) {
if (Ty->isPrimitiveType())
- switch (Ty->getPrimitiveID()) {
+ switch (Ty->getTypeID()) {
case Type::VoidTyID: return Out << "void " << NameSoFar;
case Type::BoolTyID: return Out << "bool " << NameSoFar;
case Type::UByteTyID: return Out << "unsigned char " << NameSoFar;
@@ -279,7 +279,7 @@
if (I != TypeNames.end()) return Out << I->second << " " << NameSoFar;
}
- switch (Ty->getPrimitiveID()) {
+ switch (Ty->getTypeID()) {
case Type::FunctionTyID: {
const FunctionType *MTy = cast<FunctionType>(Ty);
std::stringstream FunctionInnards;
@@ -518,7 +518,7 @@
}
}
- switch (CPV->getType()->getPrimitiveID()) {
+ switch (CPV->getType()->getTypeID()) {
case Type::BoolTyID:
Out << (CPV == ConstantBool::False ? "0" : "1"); break;
case Type::SByteTyID:
More information about the llvm-commits
mailing list