Files
clang-p2996/bolt/lib/Passes/StackPointerTracking.cpp
Maksim Panchenko 60b0999723 [BOLT][NFC] Do not pass BinaryContext alongside BinaryFunction
Summary:
BinaryContext is available via BinaryFunction::getBinaryContext(),
hence there's no reason to pass both as arguments to a function.

In a similar fashion, BinaryBasicBlock has an access to BinaryFunction
via getFunction(). Eliminate unneeded arguments.

(cherry picked from FBD31921680)
2021-10-26 00:06:34 -07:00

28 lines
954 B
C++

//===--- Passes/StackPointerTracking.cpp ----------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
#include "bolt/Passes/StackPointerTracking.h"
namespace llvm {
namespace bolt {
StackPointerTracking::StackPointerTracking(
BinaryFunction &BF, MCPlusBuilder::AllocatorIdTy AllocatorId)
: StackPointerTrackingBase<StackPointerTracking>(BF, AllocatorId) {}
} // end namespace bolt
} // end namespace llvm
llvm::raw_ostream &llvm::operator<<(llvm::raw_ostream &OS,
const std::pair<int, int> &Val) {
OS << Val.first << ", " << Val.second;
return OS;
}