From 9e672a2d1ba82c6038823ad2463ce561643b8a60 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Fri, 19 Nov 2004 18:53:59 +0000 Subject: [PATCH] A very sorry stub implementation of varargs intrinsics... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18003 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Sparc/SparcV8ISelSimple.cpp | 13 +++++++++++-- lib/Target/SparcV8/SparcV8ISelSimple.cpp | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/lib/Target/Sparc/SparcV8ISelSimple.cpp b/lib/Target/Sparc/SparcV8ISelSimple.cpp index 67cac56f1f5..47a2d010ef6 100644 --- a/lib/Target/Sparc/SparcV8ISelSimple.cpp +++ b/lib/Target/Sparc/SparcV8ISelSimple.cpp @@ -1336,8 +1336,17 @@ void V8ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) { void V8ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) { - unsigned TmpReg1, TmpReg2; switch (ID) { - default: assert(0 && "Intrinsic not supported!"); + default: + std::cerr << "Sorry, unknown intrinsic function call:\n" << CI; abort (); + + case Intrinsic::vastart: + std::cerr << "Sorry, va_start intrinsic still unsupported:\n" << CI; abort (); + + case Intrinsic::vaend: + std::cerr << "Sorry, va_end intrinsic still unsupported:\n" << CI; abort (); + + case Intrinsic::vacopy: + std::cerr << "Sorry, va_copy intrinsic still unsupported:\n" << CI; abort (); } } diff --git a/lib/Target/SparcV8/SparcV8ISelSimple.cpp b/lib/Target/SparcV8/SparcV8ISelSimple.cpp index 67cac56f1f5..47a2d010ef6 100644 --- a/lib/Target/SparcV8/SparcV8ISelSimple.cpp +++ b/lib/Target/SparcV8/SparcV8ISelSimple.cpp @@ -1336,8 +1336,17 @@ void V8ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) { void V8ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) { - unsigned TmpReg1, TmpReg2; switch (ID) { - default: assert(0 && "Intrinsic not supported!"); + default: + std::cerr << "Sorry, unknown intrinsic function call:\n" << CI; abort (); + + case Intrinsic::vastart: + std::cerr << "Sorry, va_start intrinsic still unsupported:\n" << CI; abort (); + + case Intrinsic::vaend: + std::cerr << "Sorry, va_end intrinsic still unsupported:\n" << CI; abort (); + + case Intrinsic::vacopy: + std::cerr << "Sorry, va_copy intrinsic still unsupported:\n" << CI; abort (); } }