From: Dan Gohman Date: Mon, 20 Aug 2007 19:23:34 +0000 (+0000) Subject: When Intrinsic::getName is constructing names for overloaded intrinsics, X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7abff319570dd286f2b9529ea7749fe4f97e47f6;p=oota-llvm.git When Intrinsic::getName is constructing names for overloaded intrinsics, use the ValueType name instead of the llvm type name, to match what the verifier expects. For integers these are the same, but for floating-point values the intrinsics use f32/f64 instead of float/double. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41189 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 04541dfbfdc..a4bc69b4721 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -15,6 +15,7 @@ #include "llvm/DerivedTypes.h" #include "llvm/ParameterAttributes.h" #include "llvm/IntrinsicInst.h" +#include "llvm/CodeGen/ValueTypes.h" #include "llvm/Support/LeakDetector.h" #include "llvm/Support/ManagedStatic.h" #include "SymbolTableListTraitsImpl.h" @@ -287,7 +288,7 @@ std::string Intrinsic::getName(ID id, const Type **Tys, unsigned numTys) { std::string Result(Table[id]); for (unsigned i = 0; i < numTys; ++i) if (Tys[i]) - Result += "." + Tys[i]->getDescription(); + Result += "." + MVT::getValueTypeString(MVT::getValueType(Tys[i])); return Result; }