[llvm-commits] [llvm] r134595 - in /llvm/trunk: include/llvm/Target/TargetFrameLowering.h lib/Target/X86/X86FrameLowering.cpp lib/Target/X86/X86FrameLowering.h
Bill Wendling
isanbard at gmail.com
Wed Jul 6 21:42:01 PDT 2011
Author: void
Date: Wed Jul 6 23:42:01 2011
New Revision: 134595
URL: http://llvm.org/viewvc/llvm-project?rev=134595&view=rev
Log:
Use ArrayRef instead of a std::vector&.
Modified:
llvm/trunk/include/llvm/Target/TargetFrameLowering.h
llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
llvm/trunk/lib/Target/X86/X86FrameLowering.h
Modified: llvm/trunk/include/llvm/Target/TargetFrameLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetFrameLowering.h?rev=134595&r1=134594&r2=134595&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetFrameLowering.h (original)
+++ llvm/trunk/include/llvm/Target/TargetFrameLowering.h Wed Jul 6 23:42:01 2011
@@ -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 @@
/// 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;
}
};
Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.cpp?rev=134595&r1=134594&r2=134595&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Wed Jul 6 23:42:01 2011
@@ -1032,7 +1032,7 @@
}
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 @@
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();
Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.h?rev=134595&r1=134594&r2=134595&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.h (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.h Wed Jul 6 23:42:01 2011
@@ -60,7 +60,7 @@
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;
};
More information about the llvm-commits
mailing list