diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-08-03 14:31:34 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-08-03 14:31:34 +0000 |
commit | 10893adfee2aca38bcfa1d79742eef37a58800dc (patch) | |
tree | c3f4584f9ebb06da0913b30e7f1db24024a15a4d /gnu | |
parent | ee1c56a737d2aed84d94f0441a3746de77812108 (diff) |
Import LLVM 10.0.0 release including clang, lld and lldb.
ok hackroom
tested by plenty
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/llvm/clang/lib/Basic/Targets/RISCV.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
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<std::string> &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<StringRef> &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<StringRef> &Values) const { - llvm::RISCV::fillValidCPUArchList(Values, true); -} |