diff options
author | Justin Lebar <jlebar@google.com> | 2016-07-15 18:26:59 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2016-07-15 18:26:59 +0000 |
commit | 0af80cd6f0b0ae4770f76f9af3442651dd06fcc2 (patch) | |
tree | 76c285314e346c185a3a3a54f3532040285bdcf2 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | d798c05526af3e746d3e0b5ab99ebfa62d55d803 (diff) | |
download | llvm-0af80cd6f0b0ae4770f76f9af3442651dd06fcc2.zip llvm-0af80cd6f0b0ae4770f76f9af3442651dd06fcc2.tar.gz llvm-0af80cd6f0b0ae4770f76f9af3442651dd06fcc2.tar.bz2 |
[CodeGen] Take a MachineMemOperand::Flags in MachineFunction::getMachineMemOperand.
Summary:
Previously we took an unsigned.
Hooray for type-safety.
Reviewers: chandlerc
Subscribers: dsanders, llvm-commits
Differential Revision: http://reviews.llvm.org/D22282
llvm-svn: 275591
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 6e4de49..a7c63ef 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -294,16 +294,11 @@ MachineFunction::DeleteMachineBasicBlock(MachineBasicBlock *MBB) { BasicBlockRecycler.Deallocate(Allocator, MBB); } -MachineMemOperand * -MachineFunction::getMachineMemOperand(MachinePointerInfo PtrInfo, unsigned f, - uint64_t s, unsigned base_alignment, - const AAMDNodes &AAInfo, - const MDNode *Ranges) { - // FIXME: Get rid of this static_cast and make getMachineOperand take a - // MachineMemOperand::Flags param. +MachineMemOperand *MachineFunction::getMachineMemOperand( + MachinePointerInfo PtrInfo, MachineMemOperand::Flags f, uint64_t s, + unsigned base_alignment, const AAMDNodes &AAInfo, const MDNode *Ranges) { return new (Allocator) - MachineMemOperand(PtrInfo, static_cast<MachineMemOperand::Flags>(f), s, - base_alignment, AAInfo, Ranges); + MachineMemOperand(PtrInfo, f, s, base_alignment, AAInfo, Ranges); } MachineMemOperand * |