Subzero: Use the CfgLocalAllocator for more vector types.
BUG= none
R=jvoung@chromium.org
Review URL: https://codereview.chromium.org/812023003
diff --git a/src/IceDefs.h b/src/IceDefs.h
index 867a2dd..8aafbfd 100644
--- a/src/IceDefs.h
+++ b/src/IceDefs.h
@@ -106,7 +106,8 @@
// Inst::Number value, giving the instruction number that begins or
// ends a variable's live range.
typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry;
-typedef std::vector<LiveBeginEndMapEntry> LiveBeginEndMap;
+typedef std::vector<LiveBeginEndMapEntry,
+ CfgLocalAllocator<LiveBeginEndMapEntry> > LiveBeginEndMap;
typedef llvm::BitVector LivenessBV;
typedef uint32_t TimerStackIdT;
diff --git a/src/IceOperand.h b/src/IceOperand.h
index 1cc0441..08aed06 100644
--- a/src/IceOperand.h
+++ b/src/IceOperand.h
@@ -528,7 +528,7 @@
VMK_SingleDefs, // Track uses+defs, but only record single def
VMK_All // Track uses+defs, including full def list
};
-typedef std::vector<const Inst *> InstDefList;
+typedef std::vector<const Inst *, CfgLocalAllocator<const Inst *> > InstDefList;
// VariableTracking tracks the metadata for a single variable. It is
// only meant to be used internally by VariablesMetadata.