isLabelType is obsolete
authorChris Lattner <sabre@nondot.org>
Mon, 8 Apr 2002 21:59:08 +0000 (21:59 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 8 Apr 2002 21:59:08 +0000 (21:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2175 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/LiveVar/BBLiveVar.cpp
lib/AsmParser/ParserInternals.h
lib/Target/SparcV9/LiveVar/BBLiveVar.cpp

index 66d9f32457d9dedd3df1a373b09be6374c5bf404..5217bf52a5802beaa0401ebd131a6c1ad4f31a18 100644 (file)
@@ -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))
index 2291a5a975f86a9940df1699f59bbb093b282644..8b10c36e60f5934030f2d60382d10c5a91fd6c54 100644 (file)
@@ -170,7 +170,7 @@ struct InstPlaceHolderHelper : public Instruction {
 
 struct BBPlaceHolderHelper : public BasicBlock {
   BBPlaceHolderHelper(const Type *Ty) : BasicBlock() {
-    assert(Ty->isLabelType());
+    assert(Ty == Type::LabelTy);
   }
 };
 
index 66d9f32457d9dedd3df1a373b09be6374c5bf404..5217bf52a5802beaa0401ebd131a6c1ad4f31a18 100644 (file)
@@ -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))