[llvm] r330226 - [Mem2Reg] Make RenamePassData a struct, NFC
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 17 15:03:07 PDT 2018
Author: vedantk
Date: Tue Apr 17 15:03:07 2018
New Revision: 330226
URL: http://llvm.org/viewvc/llvm-project?rev=330226&view=rev
Log:
[Mem2Reg] Make RenamePassData a struct, NFC
Modified:
llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
Modified: llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp?rev=330226&r1=330225&r2=330226&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp Tue Apr 17 15:03:07 2018
@@ -164,9 +164,8 @@ struct AllocaInfo {
}
};
-// Data package used by RenamePass()
-class RenamePassData {
-public:
+/// Data package used by RenamePass().
+struct RenamePassData {
using ValVector = std::vector<Value *>;
RenamePassData(BasicBlock *B, BasicBlock *P, ValVector V)
More information about the llvm-commits
mailing list