Skip to content

Commit ab42c4a

Browse files
committed
[NFC] Replace "omp.default.mapper" with llvm::omp::OmpDefaultMapperName.
1 parent 1841b02 commit ab42c4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

flang/lib/Parser/openmp-parsers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ static OmpMapperSpecifier ConstructOmpMapperSpecifier(
15531553
std::get<Name>(derived->t).ToString() + llvm::omp::OmpDefaultMapperName,
15541554
std::move(typeSpec), std::move(varName)};
15551555
}
1556-
return OmpMapperSpecifier{std::string("omp.default.mapper"),
1556+
return OmpMapperSpecifier{std::string(llvm::omp::OmpDefaultMapperName),
15571557
std::move(typeSpec), std::move(varName)};
15581558
}
15591559

flang/lib/Parser/unparse.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,7 +2094,7 @@ class UnparseVisitor {
20942094
}
20952095
void Unparse(const OmpMapperSpecifier &x) {
20962096
const auto &mapperName{std::get<std::string>(x.t)};
2097-
if (mapperName.find("omp.default.mapper") == std::string::npos) {
2097+
if (mapperName.find(llvm::omp::OmpDefaultMapperName) == std::string::npos) {
20982098
Walk(mapperName);
20992099
Put(":");
21002100
}
@@ -2740,7 +2740,7 @@ class UnparseVisitor {
27402740
Word("!$OMP DECLARE MAPPER (");
27412741
const auto &spec{std::get<OmpMapperSpecifier>(z.t)};
27422742
const auto &mapperName{std::get<std::string>(spec.t)};
2743-
if (mapperName.find("omp.default.mapper") == std::string::npos) {
2743+
if (mapperName.find(llvm::omp::OmpDefaultMapperName) == std::string::npos) {
27442744
Walk(mapperName);
27452745
Put(":");
27462746
}

0 commit comments

Comments
 (0)