[llvm] [llc] Remove C backend support (PR #79237)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 18:08:35 PST 2024
https://github.com/paperchalice updated https://github.com/llvm/llvm-project/pull/79237
>From a73287a6aa2e3c2173fc62f626ab59e8f1a81a56 Mon Sep 17 00:00:00 2001
From: PaperChalice <liujunchang97 at outlook.com>
Date: Wed, 24 Jan 2024 09:40:16 +0800
Subject: [PATCH 1/2] [llc] Remove C backend support C backend is removed in
3.1.
---
llvm/tools/llc/llc.cpp | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index d76d89eae3b1850..0d4fc25495938cf 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/tools/llc/llc.cpp
@@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//
//
// This is the llc code generator driver. It provides a convenient
-// command-line interface for generating native assembly-language code
-// or C code, given LLVM bitcode.
+// command-line interface for generating native assembly-language code,
+// given LLVM bitcode.
//
//===----------------------------------------------------------------------===//
@@ -274,15 +274,7 @@ static std::unique_ptr<ToolOutputFile> GetOutputStream(const char *TargetName,
switch (codegen::getFileType()) {
case CodeGenFileType::AssemblyFile:
- if (TargetName[0] == 'c') {
- if (TargetName[1] == 0)
- OutputFilename += ".cbe.c";
- else if (TargetName[1] == 'p' && TargetName[2] == 'p')
- OutputFilename += ".cpp";
- else
- OutputFilename += ".s";
- } else
- OutputFilename += ".s";
+ OutputFilename += ".s";
break;
case CodeGenFileType::ObjectFile:
if (OS == Triple::Win32)
>From c85887ed969a2c8c587472d0acc83215459ba915 Mon Sep 17 00:00:00 2001
From: PaperChalice <liujunchang97 at outlook.com>
Date: Wed, 24 Jan 2024 10:08:20 +0800
Subject: [PATCH 2/2] update doc
---
llvm/tools/llc/llc.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index 0d4fc25495938cf..3e2567c441df5ca 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/tools/llc/llc.cpp
@@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
//
// This is the llc code generator driver. It provides a convenient
-// command-line interface for generating native assembly-language code,
+// command-line interface for generating an assembly file or a relocatable file,
// given LLVM bitcode.
//
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list