diff options
author | paperchalice <liujunchang97@outlook.com> | 2024-01-24 10:40:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 10:40:11 +0800 |
commit | 7bda0ce15a2874ad74fb1a451a174084094ccc34 (patch) | |
tree | f20b9167d6a2fcba78f4f51d588f79714c1f21f6 | |
parent | f0c387038854d61a632520a4073d1b6ebf4997ed (diff) |
[llc] Remove C backend support (#79237)
C backend is removed in 3.1.
-rw-r--r-- | llvm/tools/llc/llc.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp index d76d89eae3b1..3e2567c441df 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 an assembly file or a relocatable file, +// 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) |