[Lldb-commits] [lldb] r291199 - Fix -Wunused-function warning by preprocessor conditionalizing the function the same way as the caller
David Blaikie via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 5 16:38:11 PST 2017
Author: dblaikie
Date: Thu Jan 5 18:38:10 2017
New Revision: 291199
URL: http://llvm.org/viewvc/llvm-project?rev=291199&view=rev
Log:
Fix -Wunused-function warning by preprocessor conditionalizing the function the same way as the caller
Modified:
lldb/trunk/source/Plugins/Process/POSIX/CrashReason.cpp
Modified: lldb/trunk/source/Plugins/Process/POSIX/CrashReason.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/POSIX/CrashReason.cpp?rev=291199&r1=291198&r2=291199&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/POSIX/CrashReason.cpp (original)
+++ lldb/trunk/source/Plugins/Process/POSIX/CrashReason.cpp Thu Jan 5 18:38:10 2017
@@ -21,6 +21,7 @@ void AppendFaultAddr(std::string &str, l
str += ss.str();
}
+#if defined(si_lower) && defined(si_upper)
void AppendBounds(std::string &str, lldb::addr_t lower_bound,
lldb::addr_t upper_bound, lldb::addr_t addr) {
llvm::raw_string_ostream stream(str);
@@ -37,6 +38,7 @@ void AppendBounds(std::string &str, lldb
stream << ")";
stream.flush();
}
+#endif
CrashReason GetCrashReasonForSIGSEGV(const siginfo_t &info) {
assert(info.si_signo == SIGSEGV);
More information about the lldb-commits
mailing list