Author: teemperor Date: Fri Aug 9 03:01:51 2019 New Revision: 368425 URL: http://llvm.org/viewvc/llvm-project?rev=368425&view=rev Log: [lldb][NFC] Unify InstrList typedef in IRForTarget
Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp?rev=368425&r1=368424&r2=368425&view=diff ============================================================================== --- lldb/trunk/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp (original) +++ lldb/trunk/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp Fri Aug 9 03:01:51 2019 @@ -43,6 +43,8 @@ using namespace llvm; static char ID; +typedef SmallVector<Instruction *, 2> InstrList; + IRForTarget::FunctionValueCache::FunctionValueCache(Maker const &maker) : m_maker(maker), m_values() {} @@ -885,7 +887,6 @@ bool IRForTarget::RewriteObjCSelector(In bool IRForTarget::RewriteObjCSelectors(BasicBlock &basic_block) { lldb_private::Log *log( lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS)); - typedef SmallVector<Instruction *, 2> InstrList; InstrList selector_loads; @@ -1038,8 +1039,6 @@ bool IRForTarget::RewriteObjCClassRefere lldb_private::Log *log( lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS)); - typedef SmallVector<Instruction *, 2> InstrList; - InstrList class_loads; for (Instruction &inst : basic_block) { @@ -1139,8 +1138,6 @@ bool IRForTarget::RewritePersistentAlloc lldb_private::Log *log( lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS)); - typedef SmallVector<Instruction *, 2> InstrList; - InstrList pvar_allocs; for (Instruction &inst : basic_block) { @@ -1567,7 +1564,6 @@ static void ExciseGuardStore(Instruction bool IRForTarget::RemoveGuards(BasicBlock &basic_block) { // Eliminate any reference to guard variables found. - typedef SmallVector<Instruction *, 2> InstrList; InstrList guard_loads; InstrList guard_stores; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits