forked from OSchip/llvm-project
[ArgPromotion] Move ArgPart and OffsetAndArgPart to anonymous namespace
The structure ArgPart and alias OffsetAndArgPart have been moved into the anonymous namespace. NFC. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D124617
This commit is contained in:
parent
6b825e50f7
commit
9197959e13
|
@ -89,6 +89,8 @@ STATISTIC(NumArgumentsPromoted, "Number of pointer arguments promoted");
|
|||
STATISTIC(NumByValArgsPromoted, "Number of byval arguments promoted");
|
||||
STATISTIC(NumArgumentsDead, "Number of dead pointer args eliminated");
|
||||
|
||||
namespace {
|
||||
|
||||
struct ArgPart {
|
||||
Type *Ty;
|
||||
Align Alignment;
|
||||
|
@ -96,8 +98,11 @@ struct ArgPart {
|
|||
/// metadata transfer.
|
||||
LoadInst *MustExecLoad;
|
||||
};
|
||||
|
||||
using OffsetAndArgPart = std::pair<int64_t, ArgPart>;
|
||||
|
||||
} // end anonymous namespace
|
||||
|
||||
static Value *createByteGEP(IRBuilderBase &IRB, const DataLayout &DL,
|
||||
Value *Ptr, Type *ResElemTy, int64_t Offset) {
|
||||
// For non-opaque pointers, try to create a "nice" GEP if possible, otherwise
|
||||
|
|
Loading…
Reference in New Issue