From dfde354958ca49138349e1428bf2fc0414a73a43 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Tue, 29 Mar 2022 14:46:24 -0500 Subject: [PATCH] NFC. Fixing warnings from adding DXContainer Adds DXContainer to switch statements in Clang and LLDB to silence warnings. --- clang/lib/CodeGen/BackendUtil.cpp | 1 + clang/lib/CodeGen/CGObjCMac.cpp | 1 + clang/lib/CodeGen/CodeGenModule.cpp | 2 ++ .../Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 1 + 4 files changed, 5 insertions(+) diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index eaf34eedcb2b..61677d368029 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -287,6 +287,7 @@ static bool asanUseGlobalsGC(const Triple &T, const CodeGenOptions &CGOpts) { case Triple::XCOFF: llvm::report_fatal_error("ASan not implemented for XCOFF."); case Triple::Wasm: + case Triple::DXContainer: case Triple::UnknownObjectFormat: break; } diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 94d495a99383..2ec9ef9ae060 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -5069,6 +5069,7 @@ std::string CGObjCCommonMac::GetSectionName(StringRef Section, case llvm::Triple::Wasm: case llvm::Triple::GOFF: case llvm::Triple::XCOFF: + case llvm::Triple::DXContainer: llvm::report_fatal_error( "Objective-C support is unimplemented for object file format"); } diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 5fe14953caf6..08117809c56f 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -5490,6 +5490,8 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) { llvm_unreachable("GOFF is not yet implemented"); case llvm::Triple::XCOFF: llvm_unreachable("XCOFF is not yet implemented"); + case llvm::Triple::DXContainer: + llvm_unreachable("DXContainer is not yet implemented"); case llvm::Triple::COFF: case llvm::Triple::ELF: case llvm::Triple::Wasm: diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index d258d18497b9..fc0b41fcd7ee 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -2230,6 +2230,7 @@ bool GDBRemoteCommunicationClient::GetCurrentProcessInfo(bool allow_lazy) { case llvm::Triple::GOFF: case llvm::Triple::Wasm: case llvm::Triple::XCOFF: + case llvm::Triple::DXContainer: LLDB_LOGF(log, "error: not supported target architecture"); return false; case llvm::Triple::UnknownObjectFormat: