summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86MCInstLower.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2016-08-23 23:33:29 +0000
committerPhilip Reames <listmail@philipreames.com>2016-08-23 23:33:29 +0000
commite83c4b30ca8f189d5dbd4e0be53110c3a1f7129e (patch)
tree6b9b32f91eec706ff85d80c08393af8483f4c597 /llvm/lib/Target/X86/X86MCInstLower.cpp
parentbd63d436c148152aedf13818475e66892449662b (diff)
downloadbcm5719-llvm-e83c4b30ca8f189d5dbd4e0be53110c3a1f7129e.tar.gz
bcm5719-llvm-e83c4b30ca8f189d5dbd4e0be53110c3a1f7129e.zip
[stackmaps] More extraction of common code [NFCI]
General cleanup before starting to work on the part I want to actually change. llvm-svn: 279586
Diffstat (limited to 'llvm/lib/Target/X86/X86MCInstLower.cpp')
-rw-r--r--llvm/lib/Target/X86/X86MCInstLower.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86MCInstLower.cpp b/llvm/lib/Target/X86/X86MCInstLower.cpp
index 03c8b1d3cb6..4a0d433fbf8 100644
--- a/llvm/lib/Target/X86/X86MCInstLower.cpp
+++ b/llvm/lib/Target/X86/X86MCInstLower.cpp
@@ -979,8 +979,7 @@ void X86AsmPrinter::LowerPATCHPOINT(const MachineInstr &MI,
PatchPointOpers opers(&MI);
unsigned ScratchIdx = opers.getNextScratchIdx();
unsigned EncodedBytes = 0;
- const MachineOperand &CalleeMO =
- opers.getMetaOper(PatchPointOpers::TargetPos);
+ const MachineOperand &CalleeMO = opers.getCallTarget();
// Check for null target. If target is non-null (i.e. is non-zero or is
// symbolic) then emit a call.
@@ -1016,7 +1015,7 @@ void X86AsmPrinter::LowerPATCHPOINT(const MachineInstr &MI,
}
// Emit padding.
- unsigned NumBytes = opers.getMetaOper(PatchPointOpers::NBytesPos).getImm();
+ unsigned NumBytes = opers.getNumPatchBytes();
assert(NumBytes >= EncodedBytes &&
"Patchpoint can't request size less than the length of a call.");
OpenPOWER on IntegriCloud