diff options
Diffstat (limited to 'tools/llvm-xray/xray-stacks.cpp')
-rw-r--r-- | tools/llvm-xray/xray-stacks.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/tools/llvm-xray/xray-stacks.cpp b/tools/llvm-xray/xray-stacks.cpp index d3af9e25e6f2..bcfc5cb1f1be 100644 --- a/tools/llvm-xray/xray-stacks.cpp +++ b/tools/llvm-xray/xray-stacks.cpp @@ -1,9 +1,8 @@ //===- xray-stacks.cpp: XRay Function Call Stack Accounting ---------------===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // @@ -634,10 +633,8 @@ public: Top->ExtraData.TerminalDurations.end(), 0uLL); { auto E = std::make_pair(Top, TopSum); - TopStacksBySum.insert(std::lower_bound(TopStacksBySum.begin(), - TopStacksBySum.end(), E, - greater_second), - E); + TopStacksBySum.insert( + llvm::lower_bound(TopStacksBySum, E, greater_second), E); if (TopStacksBySum.size() == 11) TopStacksBySum.pop_back(); } @@ -721,9 +718,7 @@ static CommandRegistration Unused(&Stack, []() -> Error { "-all-stacks."), std::make_error_code(std::errc::invalid_argument)); - symbolize::LLVMSymbolizer::Options Opts( - symbolize::FunctionNameKind::LinkageName, true, true, false, ""); - symbolize::LLVMSymbolizer Symbolizer(Opts); + symbolize::LLVMSymbolizer Symbolizer; FuncIdConversionHelper FuncIdHelper(StacksInstrMap, Symbolizer, Map.getFunctionAddresses()); // TODO: Someday, support output to files instead of just directly to |