[Lldb-commits] [lldb] r368425 - [lldb][NFC] Unify InstrList typedef in IRForTarget

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 9 03:01:52 PDT 2019


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;




More information about the lldb-commits mailing list