From 4f0d9d18c3662172cbeb1a4c0ddd605ba3401d83 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 12 May 2008 16:34:30 +0000 Subject: [PATCH] Update comments. llvm-svn: 50974 --- lib/VMCore/AsmWriter.cpp | 2 +- lib/VMCore/Instructions.cpp | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 7af26d0e8a7..28e38cc0239 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -539,7 +539,7 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV, Out << "zeroinitializer"; } else if (const ConstantArray *CA = dyn_cast(CV)) { // As a special case, print the array as a string if it is an array of - // ubytes or an array of sbytes with positive values. + // i8 with ConstantInt values. // const Type *ETy = CA->getType()->getElementType(); if (CA->isString()) { diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 78e7b17a669..e901f3e76e5 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -1605,10 +1605,9 @@ bool CastInst::isLosslessCast() const { /// changed in order to effect the cast. Essentially, it identifies cases where /// no code gen is necessary for the cast, hence the name no-op cast. For /// example, the following are all no-op casts: -/// # bitcast uint %X, int -/// # bitcast uint* %x, sbyte* -/// # bitcast vector< 2 x int > %x, vector< 4 x short> -/// # ptrtoint uint* %x, uint ; on 32-bit plaforms only +/// # bitcast i32* %x to i8* +/// # bitcast <2 x i32> %x to <4 x i16> +/// # ptrtoint i32* %x to i32 ; on 32-bit plaforms only /// @brief Determine if a cast is a no-op. bool CastInst::isNoopCast(const Type *IntPtrTy) const { switch (getOpcode()) {