Skip to content

Commit 969abfe

Browse files
[compiler-rt] Fix a warning
This patch fixes: compiler-rt/lib/orc/elfnix_platform.cpp:48:7: error: unused function 'validatePointerSectionExtent' [-Werror,-Wunused-function]
1 parent f597ce0 commit 969abfe

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

compiler-rt/lib/orc/elfnix_platform.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,6 @@ __unw_remove_dynamic_eh_frame_section(const void *) ORC_RT_WEAK_IMPORT;
4545

4646
namespace {
4747

48-
Error validatePointerSectionExtent(const char *SectionName,
49-
const ExecutorAddrRange &SE) {
50-
if (SE.size() % sizeof(uintptr_t)) {
51-
std::ostringstream ErrMsg;
52-
ErrMsg << std::hex << "Size of " << SectionName << " 0x"
53-
<< SE.Start.getValue() << " -- 0x" << SE.End.getValue()
54-
<< " is not a pointer multiple";
55-
return make_error<StringError>(ErrMsg.str());
56-
}
57-
return Error::success();
58-
}
59-
6048
struct TLSInfoEntry {
6149
unsigned long Key = 0;
6250
unsigned long DataAddress = 0;

0 commit comments

Comments
 (0)