- Renamed Type::isIntegral() to Type::isInteger()
authorChris Lattner <sabre@nondot.org>
Tue, 3 Sep 2002 01:07:35 +0000 (01:07 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 3 Sep 2002 01:07:35 +0000 (01:07 +0000)
  - Added new method Type::isIntegral() that is the same as isInteger, but
    also accepts bool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3573 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/TraceValues.cpp

index 714bf7637d7202aa5f054b5fbe84a7136ed165fb..4163dfef7f57727628481dbcae3f6bf0a302dfef 100644 (file)
@@ -200,7 +200,7 @@ static string getPrintfCodeFor(const Value *V) {
     return "0x%p";
   else if (isa<PointerType>(V->getType()))
     return DisablePtrHashing ? "0x%p" : "%d";
-  else if (V->getType()->isIntegral() || V->getType() == Type::BoolTy)
+  else if (V->getType()->isIntegral())
     return "%d";
   
   assert(0 && "Illegal value to print out...");