summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2016-08-31 12:43:49 +0000
committerDiana Picus <diana.picus@linaro.org>2016-08-31 12:43:49 +0000
commit760c7576330186818a0fded46f30c479ae1929e1 (patch)
tree1a699c81fbe7f352d347d8b6731279704652140e
parent16c818820be16f2564adceb5977fcde66f38b298 (diff)
downloadbcm5719-llvm-760c7576330186818a0fded46f30c479ae1929e1.tar.gz
bcm5719-llvm-760c7576330186818a0fded46f30c479ae1929e1.zip
Use abstraction in AArch64AsmPrinter::lowerSTACKMAP. NFCI
Use functionality from StackMapOpers instead of hardcoding an operand access. llvm-svn: 280230
-rw-r--r--llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp b/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
index 0c923e849e1..cd6694ddb2e 100644
--- a/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
+++ b/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
@@ -354,7 +354,7 @@ void AArch64AsmPrinter::PrintDebugValueComment(const MachineInstr *MI,
void AArch64AsmPrinter::LowerSTACKMAP(MCStreamer &OutStreamer, StackMaps &SM,
const MachineInstr &MI) {
- unsigned NumNOPBytes = MI.getOperand(1).getImm();
+ unsigned NumNOPBytes = StackMapOpers(&MI).getNumPatchBytes();
SM.recordStackMap(MI);
assert(NumNOPBytes % 4 == 0 && "Invalid number of NOP bytes requested!");
OpenPOWER on IntegriCloud