1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Use ArrayRef instead of a std::vector&.

llvm-svn: 134595
This commit is contained in:
Bill Wendling 2011-07-07 04:42:01 +00:00
parent 9e52663aa4
commit 2b47bfeaa9
3 changed files with 8 additions and 7 deletions

View File

@ -14,8 +14,9 @@
#ifndef LLVM_TARGET_TARGETFRAMELOWERING_H
#define LLVM_TARGET_TARGETFRAMELOWERING_H
#include "llvm/MC/MCDwarf.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/MC/MCDwarf.h"
#include "llvm/ADT/ArrayRef.h"
#include <utility>
#include <vector>
@ -193,9 +194,9 @@ public:
/// getCompactUnwindEncoding - Get the compact unwind encoding for the
/// function. Return 0 if the compact unwind isn't available.
virtual uint32_t getCompactUnwindEncoding(const std::vector<MCCFIInstruction>&,
int /*DataAlignmentFactor*/,
bool /*IsEH*/) const {
virtual uint32_t getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs,
int DataAlignmentFactor,
bool IsEH) const {
return 0;
}
};

View File

@ -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();

View File

@ -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;
};