summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ExpressionParser
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-08-09 10:01:51 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-08-09 10:01:51 +0000
commitac42e741e01b0c2d91c3ae1d92a5b9685a05baf7 (patch)
treea7d9cc05e4c2dd31b4f7f926f753ce776c4cb9d7 /lldb/source/Plugins/ExpressionParser
parent339b5d1ac2ed525f51681517f84a925fdc9bf92e (diff)
downloadbcm5719-llvm-ac42e741e01b0c2d91c3ae1d92a5b9685a05baf7.tar.gz
bcm5719-llvm-ac42e741e01b0c2d91c3ae1d92a5b9685a05baf7.zip
[lldb][NFC] Unify InstrList typedef in IRForTarget
llvm-svn: 368425
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser')
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp b/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
index 1edeac44a5b..33b3dead0a4 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
@@ -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(Instruction *selector_load) {
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::RewriteObjCClassReferences(BasicBlock &basic_block) {
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::RewritePersistentAllocs(llvm::BasicBlock &basic_block) {
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 *guard_store) {
bool IRForTarget::RemoveGuards(BasicBlock &basic_block) {
// Eliminate any reference to guard variables found.
- typedef SmallVector<Instruction *, 2> InstrList;
InstrList guard_loads;
InstrList guard_stores;
OpenPOWER on IntegriCloud