summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/ParserInternals.h
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/AsmParser/ParserInternals.h
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/AsmParser/ParserInternals.h')
-rw-r--r--llvm/lib/AsmParser/ParserInternals.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/ParserInternals.h b/llvm/lib/AsmParser/ParserInternals.h
index bb248c34ed1..56852ab1f38 100644
--- a/llvm/lib/AsmParser/ParserInternals.h
+++ b/llvm/lib/AsmParser/ParserInternals.h
@@ -194,7 +194,7 @@ static inline ValID &getValIDFromPlaceHolder(const Value *Val) {
isa<FunctionType>(cast<PointerType>(Ty)->getElementType()))
Ty = cast<PointerType>(Ty)->getElementType();
- switch (Ty->getPrimitiveID()) {
+ switch (Ty->getTypeID()) {
case Type::LabelTyID: return ((BBPlaceHolder*)Val)->getDef();
default: return ((ValuePlaceHolder*)Val)->getDef();
}
@@ -206,7 +206,7 @@ static inline int getLineNumFromPlaceHolder(const Value *Val) {
isa<FunctionType>(cast<PointerType>(Ty)->getElementType()))
Ty = cast<PointerType>(Ty)->getElementType();
- switch (Ty->getPrimitiveID()) {
+ switch (Ty->getTypeID()) {
case Type::LabelTyID: return ((BBPlaceHolder*)Val)->getLineNum();
default: return ((ValuePlaceHolder*)Val)->getLineNum();
}
OpenPOWER on IntegriCloud