Turns out no-one actually cares about this one (at least) in tree so we can
just drop it entirely.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294345
91177308-0d34-0410-b5e6-
96231b3b80d8
MIRBuilder.buildDirectDbgValue(Reg, DI.getVariable(), DI.getExpression());
return true;
}
+ case Intrinsic::vaend:
+ // No target I know of cares about va_end. Certainly no in-tree target
+ // does. Simplest intrinsic ever!
+ return true;
case Intrinsic::dbg_value: {
// This form of DBG_VALUE is target-independent.
const DbgValueInst &DI = cast<DbgValueInst>(CI);
next:
ret i8* inttoptr(i32 42 to i8*)
}
+
+declare void @llvm.va_end(i8*)
+define void @test_va_end(i8* %list) {
+; CHECK-LABEL: name: test_va_end
+; CHECK-NOT: va_end
+; CHECK-NOT: INTRINSIC
+; CHECK: RET_ReallyLR
+ call void @llvm.va_end(i8* %list)
+ ret void
+}