From 10893adfee2aca38bcfa1d79742eef37a58800dc Mon Sep 17 00:00:00 2001 From: Patrick Wildt Date: Mon, 3 Aug 2020 14:31:34 +0000 Subject: Import LLVM 10.0.0 release including clang, lld and lldb. ok hackroom tested by plenty --- gnu/llvm/clang/lib/Basic/Targets/RISCV.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'gnu/llvm/clang') diff --git a/gnu/llvm/clang/lib/Basic/Targets/RISCV.cpp b/gnu/llvm/clang/lib/Basic/Targets/RISCV.cpp index 4ba703c8dd1..ab8272c034f 100644 --- a/gnu/llvm/clang/lib/Basic/Targets/RISCV.cpp +++ b/gnu/llvm/clang/lib/Basic/Targets/RISCV.cpp @@ -13,7 +13,6 @@ #include "RISCV.h" #include "clang/Basic/MacroBuilder.h" #include "llvm/ADT/StringSwitch.h" -#include "llvm/Support/TargetParser.h" using namespace clang; using namespace clang::targets; @@ -126,9 +125,6 @@ void RISCVTargetInfo::getTargetDefines(const LangOptions &Opts, if (HasC) Builder.defineMacro("__riscv_compressed"); - - if (HasB) - Builder.defineMacro("__riscv_bitmanip"); } /// Return true if has this feature, need to sync with handleTargetFeatures. @@ -143,7 +139,6 @@ bool RISCVTargetInfo::hasFeature(StringRef Feature) const { .Case("f", HasF) .Case("d", HasD) .Case("c", HasC) - .Case("experimental-b", HasB) .Default(false); } @@ -161,29 +156,7 @@ bool RISCVTargetInfo::handleTargetFeatures(std::vector &Features, HasD = true; else if (Feature == "+c") HasC = true; - else if (Feature == "+experimental-b") - HasB = true; } return true; } - -bool RISCV32TargetInfo::isValidCPUName(StringRef Name) const { - return llvm::RISCV::checkCPUKind(llvm::RISCV::parseCPUKind(Name), - /*Is64Bit=*/false); -} - -void RISCV32TargetInfo::fillValidCPUList( - SmallVectorImpl &Values) const { - llvm::RISCV::fillValidCPUArchList(Values, false); -} - -bool RISCV64TargetInfo::isValidCPUName(StringRef Name) const { - return llvm::RISCV::checkCPUKind(llvm::RISCV::parseCPUKind(Name), - /*Is64Bit=*/true); -} - -void RISCV64TargetInfo::fillValidCPUList( - SmallVectorImpl &Values) const { - llvm::RISCV::fillValidCPUArchList(Values, true); -} -- cgit v1.2.3