[llvm] r266627 - Lanai: fix debug build
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 24 00:13:14 PDT 2016
Can you just use RegVT.getEVTString() here? That's what I did in the other
targets when i turned in the change that likely broke this. Seems Lanai
isn't in the default all targets list or I would have caught when I
committed.
On Mon, Apr 18, 2016 at 9:33 AM, JF Bastien via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> Author: jfb
> Date: Mon Apr 18 11:33:41 2016
> New Revision: 266627
>
> URL: http://llvm.org/viewvc/llvm-project?rev=266627&view=rev
> Log:
> Lanai: fix debug build
>
> There's currently no raw_ostream &operator<<(SimpleValueType); provided by
> LLVM. It could be added by refactoring
> utils/TableGen/CodeGenTarget.cpp:getEnumName, but that's much more work
> than fixing the build.
>
> Modified:
> llvm/trunk/lib/Target/Lanai/LanaiISelLowering.cpp
>
> Modified: llvm/trunk/lib/Target/Lanai/LanaiISelLowering.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Lanai/LanaiISelLowering.cpp?rev=266627&r1=266626&r2=266627&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Target/Lanai/LanaiISelLowering.cpp (original)
> +++ llvm/trunk/lib/Target/Lanai/LanaiISelLowering.cpp Mon Apr 18 11:33:41
> 2016
> @@ -456,7 +456,7 @@ SDValue LanaiTargetLowering::LowerCCCArg
> }
> default:
> DEBUG(dbgs() << "LowerFormalArguments Unhandled argument type: "
> - << RegVT.getSimpleVT().SimpleTy << "\n");
> + << (int)RegVT.getSimpleVT().SimpleTy << "\n");
> llvm_unreachable("unhandled argument type");
> }
> } else {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
--
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160424/53c8c105/attachment.html>
More information about the llvm-commits
mailing list