Skip to content

Commit

Permalink
[gold] Fix Tapir targets for Gold plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
neboat committed Sep 1, 2024
1 parent 082303a commit be5d917
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/tools/gold/gold-plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,14 @@ namespace options {
static std::string opencilk_abi_bitcode_file;

static TapirTargetID parseTapirTarget(StringRef tapirTarget) {
return StringSwitch<TapirTargetID>(tapirTarget)
return llvm::StringSwitch<TapirTargetID>(tapirTarget)
.Case("none", TapirTargetID::None)
.Case("serial", TapirTargetID::Serial)
.Case("cheetah", TapirTargetID::Cheetah)
.Case("cilkplus", TapirTargetID::Cilk)
.Case("cuda", TapirTargetID::Cuda)
.Case("lambda", TapirTargetID::Lambda)
.Case("omptask", TapirTargetID::OMPTask)
.Case("opencilk", TapirTargetID::OpenCilk)
.Case("openmp", TapirTargetID::OpenMP)
.Case("qthreads", TapirTargetID::Qthreads)
.Default(TapirTargetID::Last_TapirTargetID);
}
Expand Down

0 comments on commit be5d917

Please sign in to comment.