summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FrameLowering.h
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2017-04-13 14:10:52 +0000
committerSerge Pavlov <sepavloff@gmail.com>2017-04-13 14:10:52 +0000
commit49acf9c8ebba8deada0d22524c0482848d5de486 (patch)
tree38056d09a32f30bd2cdf9f6f5ddbdf6c65631bb5 /llvm/lib/Target/X86/X86FrameLowering.h
parente32a66b2de3ce7dec25f32b46974880b9ce20875 (diff)
downloadbcm5719-llvm-49acf9c8ebba8deada0d22524c0482848d5de486.tar.gz
bcm5719-llvm-49acf9c8ebba8deada0d22524c0482848d5de486.zip
Use methods to access data stored with frame instructions
Instructions CALLSEQ_START..CALLSEQ_END and their target dependent counterparts keep data like frame size, stack adjustment etc. These data are accessed by getOperand using hard coded indices. It is error prone way. This change implements the access by special methods, which improve readability and allow changing data representation without massive changes of index values. Differential Revision: https://reviews.llvm.org/D31953 llvm-svn: 300196
Diffstat (limited to 'llvm/lib/Target/X86/X86FrameLowering.h')
-rw-r--r--llvm/lib/Target/X86/X86FrameLowering.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.h b/llvm/lib/Target/X86/X86FrameLowering.h
index e1b04d6dc30..863dc8b2296 100644
--- a/llvm/lib/Target/X86/X86FrameLowering.h
+++ b/llvm/lib/Target/X86/X86FrameLowering.h
@@ -20,6 +20,7 @@ namespace llvm {
class MachineInstrBuilder;
class MCCFIInstruction;
+class X86InstrInfo;
class X86Subtarget;
class X86RegisterInfo;
@@ -30,7 +31,7 @@ public:
// Cached subtarget predicates.
const X86Subtarget &STI;
- const TargetInstrInfo &TII;
+ const X86InstrInfo &TII;
const X86RegisterInfo *TRI;
unsigned SlotSize;
OpenPOWER on IntegriCloud