aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-07-11 16:22:38 +0000
committerCraig Topper <craig.topper@gmail.com>2013-07-11 16:22:38 +0000
commit9e639e8fd95488cb4c8ef2f7f3a41919acb29ac4 (patch)
treef4aa87a04af2f69d097f9c9ed386fa833cabac39 /include
parent73480481f4ebe05e0b0f7d5eabd8f8f34b6823f1 (diff)
downloadexternal_llvm-9e639e8fd95488cb4c8ef2f7f3a41919acb29ac4.zip
external_llvm-9e639e8fd95488cb4c8ef2f7f3a41919acb29ac4.tar.gz
external_llvm-9e639e8fd95488cb4c8ef2f7f3a41919acb29ac4.tar.bz2
Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h2
-rw-r--r--include/llvm/CodeGen/LiveVariables.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index cb09a49..efad0c6 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -389,7 +389,7 @@ namespace llvm {
void join(LiveInterval &Other,
const int *ValNoAssignments,
const int *RHSValNoAssignments,
- SmallVector<VNInfo*, 16> &NewVNInfo,
+ SmallVectorImpl<VNInfo *> &NewVNInfo,
MachineRegisterInfo *MRI);
/// isInOneLiveRange - Return true if the range specified is entirely in the
diff --git a/include/llvm/CodeGen/LiveVariables.h b/include/llvm/CodeGen/LiveVariables.h
index 6628fd2..dc735f7 100644
--- a/include/llvm/CodeGen/LiveVariables.h
+++ b/include/llvm/CodeGen/LiveVariables.h
@@ -157,8 +157,8 @@ private: // Intermediate data structures
void HandlePhysRegUse(unsigned Reg, MachineInstr *MI);
void HandlePhysRegDef(unsigned Reg, MachineInstr *MI,
- SmallVector<unsigned, 4> &Defs);
- void UpdatePhysRegDefs(MachineInstr *MI, SmallVector<unsigned, 4> &Defs);
+ SmallVectorImpl<unsigned> &Defs);
+ void UpdatePhysRegDefs(MachineInstr *MI, SmallVectorImpl<unsigned> &Defs);
/// FindLastRefOrPartRef - Return the last reference or partial reference of
/// the specified register.