Skip to content

Commit b2222e2

Browse files
committed
Address minor issue caused by recent main branch updates
1 parent d5796f8 commit b2222e2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

compiler-rt/lib/orc/common.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ __orc_rt_jit_dispatch(__orc_rt_Opaque *DispatchCtx, const void *FnTag,
5454
template <typename RecordElement> class RecordSectionsTracker {
5555
public:
5656
/// Add a section to the "new" list.
57-
void add(__orc_rt::span<RecordElement> Sec) { New.push_back(std::move(Sec)); }
57+
void add(orc_rt::span<RecordElement> Sec) { New.push_back(std::move(Sec)); }
5858

5959
/// Returns true if there are new sections to process.
6060
bool hasNewSections() const { return !New.empty(); }
@@ -65,7 +65,7 @@ template <typename RecordElement> class RecordSectionsTracker {
6565
/// Process all new sections.
6666
template <typename ProcessSectionFunc>
6767
std::enable_if_t<std::is_void_v<
68-
std::invoke_result_t<ProcessSectionFunc, __orc_rt::span<RecordElement>>>>
68+
std::invoke_result_t<ProcessSectionFunc, orc_rt::span<RecordElement>>>>
6969
processNewSections(ProcessSectionFunc &&ProcessSection) {
7070
for (auto &Sec : New)
7171
ProcessSection(Sec);
@@ -78,10 +78,10 @@ template <typename RecordElement> class RecordSectionsTracker {
7878
/// list.
7979
template <typename ProcessSectionFunc>
8080
std::enable_if_t<
81-
std::is_same_v<__orc_rt::Error,
81+
std::is_same_v<orc_rt::Error,
8282
std::invoke_result_t<ProcessSectionFunc,
83-
__orc_rt::span<RecordElement>>>,
84-
__orc_rt::Error>
83+
orc_rt::span<RecordElement>>>,
84+
orc_rt::Error>
8585
processNewSections(ProcessSectionFunc &&ProcessSection) {
8686
for (size_t I = 0; I != New.size(); ++I) {
8787
if (auto Err = ProcessSection(New[I])) {
@@ -92,7 +92,7 @@ template <typename RecordElement> class RecordSectionsTracker {
9292
}
9393
}
9494
moveNewToProcessed();
95-
return __orc_rt::Error::success();
95+
return orc_rt::Error::success();
9696
}
9797

9898
/// Move all sections back to New for reprocessing.
@@ -102,7 +102,7 @@ template <typename RecordElement> class RecordSectionsTracker {
102102
}
103103

104104
/// Remove the section with the given range.
105-
bool removeIfPresent(__orc_rt::ExecutorAddrRange R) {
105+
bool removeIfPresent(orc_rt::ExecutorAddrRange R) {
106106
if (removeIfPresent(New, R))
107107
return true;
108108
return removeIfPresent(Processed, R);
@@ -119,11 +119,11 @@ template <typename RecordElement> class RecordSectionsTracker {
119119
}
120120
}
121121

122-
bool removeIfPresent(std::vector<__orc_rt::span<RecordElement>> &V,
123-
__orc_rt::ExecutorAddrRange R) {
122+
bool removeIfPresent(std::vector<orc_rt::span<RecordElement>> &V,
123+
orc_rt::ExecutorAddrRange R) {
124124
auto RI = std::find_if(V.rbegin(), V.rend(),
125125
[RS = R.toSpan<RecordElement>()](
126-
const __orc_rt::span<RecordElement> &E) {
126+
const orc_rt::span<RecordElement> &E) {
127127
return E.data() == RS.data();
128128
});
129129
if (RI != V.rend()) {
@@ -133,7 +133,7 @@ template <typename RecordElement> class RecordSectionsTracker {
133133
return false;
134134
}
135135

136-
std::vector<__orc_rt::span<RecordElement>> Processed;
137-
std::vector<__orc_rt::span<RecordElement>> New;
136+
std::vector<orc_rt::span<RecordElement>> Processed;
137+
std::vector<orc_rt::span<RecordElement>> New;
138138
};
139139
#endif // ORC_RT_COMMON_H

0 commit comments

Comments
 (0)