[compiler-rt] 969abfe - [compiler-rt] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 28 01:28:17 PDT 2024
Author: Kazu Hirata
Date: 2024-09-28T01:28:10-07:00
New Revision: 969abfea48ab639687aa46b7b442f3517366da97
URL: https://github.com/llvm/llvm-project/commit/969abfea48ab639687aa46b7b442f3517366da97
DIFF: https://github.com/llvm/llvm-project/commit/969abfea48ab639687aa46b7b442f3517366da97.diff
LOG: [compiler-rt] Fix a warning
This patch fixes:
compiler-rt/lib/orc/elfnix_platform.cpp:48:7: error: unused function
'validatePointerSectionExtent' [-Werror,-Wunused-function]
Added:
Modified:
compiler-rt/lib/orc/elfnix_platform.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/orc/elfnix_platform.cpp b/compiler-rt/lib/orc/elfnix_platform.cpp
index 456d50dd90212a..e0813a40f1e3a5 100644
--- a/compiler-rt/lib/orc/elfnix_platform.cpp
+++ b/compiler-rt/lib/orc/elfnix_platform.cpp
@@ -45,18 +45,6 @@ __unw_remove_dynamic_eh_frame_section(const void *) ORC_RT_WEAK_IMPORT;
namespace {
-Error validatePointerSectionExtent(const char *SectionName,
- const ExecutorAddrRange &SE) {
- if (SE.size() % sizeof(uintptr_t)) {
- std::ostringstream ErrMsg;
- ErrMsg << std::hex << "Size of " << SectionName << " 0x"
- << SE.Start.getValue() << " -- 0x" << SE.End.getValue()
- << " is not a pointer multiple";
- return make_error<StringError>(ErrMsg.str());
- }
- return Error::success();
-}
-
struct TLSInfoEntry {
unsigned long Key = 0;
unsigned long DataAddress = 0;
More information about the llvm-commits
mailing list