From ed930b08d247f78435eb83bdac728a7bca6c8d32 Mon Sep 17 00:00:00 2001 From: Roman Zhuykov Date: Tue, 18 Jul 2023 15:01:13 +0300 Subject: [PATCH] Fix typo and add triple to a test Signed-off-by: Roman Zhuykov --- llvm/lib/IR/AsmWriter.cpp | 2 +- llvm/test/CodeGen/X86/GC/ark-spills.ll | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 4244de9755f8..cc5e4f586716 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -305,7 +305,7 @@ static void PrintCallingConv(unsigned cc, raw_ostream &Out) { case CallingConv::ArkFast3: Out << "arkfast3cc"; break; case CallingConv::ArkFast4: Out << "arkfast4cc"; break; case CallingConv::ArkFast5: Out << "arkfast5cc"; break; - case CallingConv::ArkMethod: Out << "arkmethod"; break; + case CallingConv::ArkMethod: Out << "arkmethodcc"; break; case CallingConv::ArkResolver: Out << "arkresolvercc"; break; case CallingConv::ArkPlt: Out << "arkpltcc"; break; // OHOS_LOCAL end diff --git a/llvm/test/CodeGen/X86/GC/ark-spills.ll b/llvm/test/CodeGen/X86/GC/ark-spills.ll index 89172c72d1f9..52453bb3a238 100644 --- a/llvm/test/CodeGen/X86/GC/ark-spills.ll +++ b/llvm/test/CodeGen/X86/GC/ark-spills.ll @@ -1,6 +1,8 @@ ; RUN: llc < %s | FileCheck %s ; RUN: llc -opaque-pointers < %s | FileCheck %s +target triple = "x86_64-pc-linux-gnu" + define weak void @foo(ptr addrspace(1) %ref) { ret void } -- Gitee