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); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits