aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-08 21:59:08 +0000
committerChris Lattner <sabre@nondot.org>2002-04-08 21:59:08 +0000
commitc8a79af27df2a24b2bb496997194aa35bba70432 (patch)
tree0e0f0595355a7de89e3c5f4ac241178b7730890b
parente6d4ec3d5a423028f466eb05bbcdb8d17280b84a (diff)
downloadexternal_llvm-c8a79af27df2a24b2bb496997194aa35bba70432.zip
external_llvm-c8a79af27df2a24b2bb496997194aa35bba70432.tar.gz
external_llvm-c8a79af27df2a24b2bb496997194aa35bba70432.tar.bz2
isLabelType is obsolete
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2175 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/LiveVar/BBLiveVar.cpp2
-rw-r--r--lib/AsmParser/ParserInternals.h2
-rw-r--r--lib/Target/SparcV9/LiveVar/BBLiveVar.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/LiveVar/BBLiveVar.cpp b/lib/Analysis/LiveVar/BBLiveVar.cpp
index 66d9f32..5217bf5 100644
--- a/lib/Analysis/LiveVar/BBLiveVar.cpp
+++ b/lib/Analysis/LiveVar/BBLiveVar.cpp
@@ -116,7 +116,7 @@ void BBLiveVar::calcDefUseSets() {
assert(MI->getOpCode() != PHI && "Phi cannot have implicit opeands");
const Value *Op = MI->getImplicitRef(i);
- if (Op->getType()->isLabelType()) // don't process labels
+ if (Op->getType() == Type::LabelTy) // don't process labels
continue;
if (!MI->implicitRefIsDefined(i))
diff --git a/lib/AsmParser/ParserInternals.h b/lib/AsmParser/ParserInternals.h
index 2291a5a..8b10c36 100644
--- a/lib/AsmParser/ParserInternals.h
+++ b/lib/AsmParser/ParserInternals.h
@@ -170,7 +170,7 @@ struct InstPlaceHolderHelper : public Instruction {
struct BBPlaceHolderHelper : public BasicBlock {
BBPlaceHolderHelper(const Type *Ty) : BasicBlock() {
- assert(Ty->isLabelType());
+ assert(Ty == Type::LabelTy);
}
};
diff --git a/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp b/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp
index 66d9f32..5217bf5 100644
--- a/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp
+++ b/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp
@@ -116,7 +116,7 @@ void BBLiveVar::calcDefUseSets() {
assert(MI->getOpCode() != PHI && "Phi cannot have implicit opeands");
const Value *Op = MI->getImplicitRef(i);
- if (Op->getType()->isLabelType()) // don't process labels
+ if (Op->getType() == Type::LabelTy) // don't process labels
continue;
if (!MI->implicitRefIsDefined(i))