summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-17 18:19:28 +0000
committerChris Lattner <sabre@nondot.org>2004-06-17 18:19:28 +0000
commit6b7275996c78e50ca8b7d13625296b92d74b86c7 (patch)
tree75817e19a6f0bb380bf1a9ba39f0664076fb5705 /llvm/lib/Bytecode/Writer/ConstantWriter.cpp
parent97bfcea262bbdeba8f8d468ff999008a4c448474 (diff)
downloadbcm5719-llvm-6b7275996c78e50ca8b7d13625296b92d74b86c7.tar.gz
bcm5719-llvm-6b7275996c78e50ca8b7d13625296b92d74b86c7.zip
Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()
llvm-svn: 14201
Diffstat (limited to 'llvm/lib/Bytecode/Writer/ConstantWriter.cpp')
-rw-r--r--llvm/lib/Bytecode/Writer/ConstantWriter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
index bb8d286899a..3234a35f588 100644
--- a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
+++ b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
@@ -20,14 +20,14 @@
using namespace llvm;
void BytecodeWriter::outputType(const Type *T) {
- output_vbr((unsigned)T->getPrimitiveID(), Out);
+ output_vbr((unsigned)T->getTypeID(), Out);
// That's all there is to handling primitive types...
if (T->isPrimitiveType()) {
return; // We might do this if we alias a prim type: %x = type int
}
- switch (T->getPrimitiveID()) { // Handle derived types now.
+ switch (T->getTypeID()) { // Handle derived types now.
case Type::FunctionTyID: {
const FunctionType *MT = cast<FunctionType>(T);
int Slot = Table.getSlot(MT->getReturnType());
@@ -47,7 +47,7 @@ void BytecodeWriter::outputType(const Type *T) {
// Terminate list with VoidTy if we are a varargs function...
if (MT->isVarArg())
- output_vbr((unsigned)Type::VoidTy->getPrimitiveID(), Out);
+ output_vbr((unsigned)Type::VoidTyID, Out);
break;
}
@@ -74,7 +74,7 @@ void BytecodeWriter::outputType(const Type *T) {
}
// Terminate list with VoidTy
- output_vbr((unsigned)Type::VoidTy->getPrimitiveID(), Out);
+ output_vbr((unsigned)Type::VoidTyID, Out);
break;
}
@@ -124,7 +124,7 @@ void BytecodeWriter::outputConstant(const Constant *CPV) {
output_vbr(0U, Out); // flag as not a ConstantExpr
}
- switch (CPV->getType()->getPrimitiveID()) {
+ switch (CPV->getType()->getTypeID()) {
case Type::BoolTyID: // Boolean Types
if (cast<ConstantBool>(CPV)->getValue())
output_vbr(1U, Out);
OpenPOWER on IntegriCloud