diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-07-07 04:42:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-07-07 04:42:01 +0000 |
commit | b99e412650d25776686b46e743751f4ba97a2e4e (patch) | |
tree | be3c1d8301c828eafb6d33f0831389df88721d16 /lib | |
parent | 944520f38c79f3cbf1abfca92a5414458d639029 (diff) |
Use ArrayRef instead of a std::vector&.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86FrameLowering.cpp | 4 | ||||
-rw-r--r-- | lib/Target/X86/X86FrameLowering.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp index 08c381f13a..fb53e2734a 100644 --- a/lib/Target/X86/X86FrameLowering.cpp +++ b/lib/Target/X86/X86FrameLowering.cpp @@ -1032,7 +1032,7 @@ X86FrameLowering::processFunctionBeforeCalleeSavedScan(MachineFunction &MF, } uint32_t X86FrameLowering:: -getCompactUnwindEncoding(const std::vector<MCCFIInstruction> &Instrs, +getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs, int DataAlignmentFactor, bool IsEH) const { uint32_t Encoding = 0; int CFAOffset = 0; @@ -1040,7 +1040,7 @@ getCompactUnwindEncoding(const std::vector<MCCFIInstruction> &Instrs, SmallVector<unsigned, 8> SavedRegs; int FramePointerReg = -1; - for (std::vector<MCCFIInstruction>::const_iterator + for (ArrayRef<MCCFIInstruction>::const_iterator I = Instrs.begin(), E = Instrs.end(); I != E; ++I) { const MCCFIInstruction &Inst = *I; MCSymbol *Label = Inst.getLabel(); diff --git a/lib/Target/X86/X86FrameLowering.h b/lib/Target/X86/X86FrameLowering.h index f2b8dab6a5..14c31ed47c 100644 --- a/lib/Target/X86/X86FrameLowering.h +++ b/lib/Target/X86/X86FrameLowering.h @@ -60,7 +60,7 @@ public: void getInitialFrameState(std::vector<MachineMove> &Moves) const; int getFrameIndexOffset(const MachineFunction &MF, int FI) const; - uint32_t getCompactUnwindEncoding(const std::vector<MCCFIInstruction> &Instrs, + uint32_t getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs, int DataAlignmentFactor, bool IsEH) const; }; |