mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Remove dead calls and function arguments dealing with TRI in StackMaps.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232847 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e2305f7e90
commit
aaca69b339
@ -246,7 +246,7 @@ private:
|
|||||||
void emitConstantPoolEntries(MCStreamer &OS);
|
void emitConstantPoolEntries(MCStreamer &OS);
|
||||||
|
|
||||||
/// \brief Emit the callsite info for each stackmap/patchpoint intrinsic call.
|
/// \brief Emit the callsite info for each stackmap/patchpoint intrinsic call.
|
||||||
void emitCallsiteEntries(MCStreamer &OS, const TargetRegisterInfo *TRI);
|
void emitCallsiteEntries(MCStreamer &OS);
|
||||||
|
|
||||||
void print(raw_ostream &OS);
|
void print(raw_ostream &OS);
|
||||||
void debug() { print(dbgs()); }
|
void debug() { print(dbgs()); }
|
||||||
|
@ -460,8 +460,7 @@ void StackMaps::emitConstantPoolEntries(MCStreamer &OS) {
|
|||||||
/// 0x3, Indirect, [Reg + Offset] (spilled value)
|
/// 0x3, Indirect, [Reg + Offset] (spilled value)
|
||||||
/// 0x4, Constant, Offset (small constant)
|
/// 0x4, Constant, Offset (small constant)
|
||||||
/// 0x5, ConstIndex, Constants[Offset] (large constant)
|
/// 0x5, ConstIndex, Constants[Offset] (large constant)
|
||||||
void StackMaps::emitCallsiteEntries(MCStreamer &OS,
|
void StackMaps::emitCallsiteEntries(MCStreamer &OS) {
|
||||||
const TargetRegisterInfo *TRI) {
|
|
||||||
DEBUG(print(dbgs()));
|
DEBUG(print(dbgs()));
|
||||||
// Callsite entries.
|
// Callsite entries.
|
||||||
for (const auto &CSI : CSInfos) {
|
for (const auto &CSI : CSInfos) {
|
||||||
@ -524,7 +523,6 @@ void StackMaps::serializeToStackMapSection() {
|
|||||||
|
|
||||||
MCContext &OutContext = AP.OutStreamer.getContext();
|
MCContext &OutContext = AP.OutStreamer.getContext();
|
||||||
MCStreamer &OS = AP.OutStreamer;
|
MCStreamer &OS = AP.OutStreamer;
|
||||||
const TargetRegisterInfo *TRI = AP.TM.getSubtargetImpl()->getRegisterInfo();
|
|
||||||
|
|
||||||
// Create the section.
|
// Create the section.
|
||||||
const MCSection *StackMapSection =
|
const MCSection *StackMapSection =
|
||||||
@ -539,7 +537,7 @@ void StackMaps::serializeToStackMapSection() {
|
|||||||
emitStackmapHeader(OS);
|
emitStackmapHeader(OS);
|
||||||
emitFunctionFrameRecords(OS);
|
emitFunctionFrameRecords(OS);
|
||||||
emitConstantPoolEntries(OS);
|
emitConstantPoolEntries(OS);
|
||||||
emitCallsiteEntries(OS, TRI);
|
emitCallsiteEntries(OS);
|
||||||
OS.AddBlankLine();
|
OS.AddBlankLine();
|
||||||
|
|
||||||
// Clean up.
|
// Clean up.
|
||||||
|
Loading…
Reference in New Issue
Block a user