File tree Expand file tree Collapse file tree 4 files changed +0
-73
lines changed Expand file tree Collapse file tree 4 files changed +0
-73
lines changed Original file line number Diff line number Diff line change @@ -127,11 +127,6 @@ class GlobalObject : public GlobalValue {
127127 // / Set the section prefix for this global object.
128128 void setSectionPrefix (StringRef Prefix);
129129
130- // / Update the section prefix, unless the existing prefix is the same as
131- // / `KeepPrefix`.
132- void updateSectionPrefix (StringRef Prefix,
133- std::optional<StringRef> KeepPrefix = std::nullopt );
134-
135130 // / Get the section prefix for this global object.
136131 std::optional<StringRef> getSectionPrefix () const ;
137132
Original file line number Diff line number Diff line change @@ -293,17 +293,6 @@ void GlobalObject::setSectionPrefix(StringRef Prefix) {
293293 MDB.createGlobalObjectSectionPrefix (Prefix));
294294}
295295
296- void GlobalObject::updateSectionPrefix (StringRef Prefix,
297- std::optional<StringRef> KeepPrefix) {
298- auto SectionPrefix = getSectionPrefix ();
299- if (SectionPrefix && (*SectionPrefix == Prefix ||
300- (KeepPrefix && *SectionPrefix == *KeepPrefix)))
301- return ;
302-
303- setSectionPrefix (Prefix);
304- return ;
305- }
306-
307296std::optional<StringRef> GlobalObject::getSectionPrefix () const {
308297 if (MDNode *MD = getMetadata (LLVMContext::MD_section_prefix)) {
309298 [[maybe_unused]] StringRef MDName =
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ add_llvm_unittest(IRTests
2828 DominatorTreeBatchUpdatesTest.cpp
2929 DroppedVariableStatsIRTest.cpp
3030 FunctionTest.cpp
31- GlobalObjectTest.cpp
3231 PassBuilderCallbacksTest.cpp
3332 IRBuilderTest.cpp
3433 InstructionsTest.cpp
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments