diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-11-07 00:54:13 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-11-07 00:54:13 +0000 |
commit | 33e43ca6082597502b23e5f18ff7756c8d54c639 (patch) | |
tree | cd7338a4517496083409c008686c896be4862f12 | |
parent | eafa28a0d9274d9cdd9f02ac4a42ea9ee76d3313 (diff) | |
download | bcm5719-llvm-33e43ca6082597502b23e5f18ff7756c8d54c639.tar.gz bcm5719-llvm-33e43ca6082597502b23e5f18ff7756c8d54c639.zip |
lldb/ADT: Remove implicit ilist iterator conversions, NFC
Remove implicit ilist iterator conversions before reapplying r252372
(which will disallow them).
llvm-svn: 252378
-rw-r--r-- | lldb/source/Expression/IRInterpreter.cpp | 12 | ||||
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp | 16 |
2 files changed, 14 insertions, 14 deletions
diff --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp index ceaf1f3f64f..189c772470e 100644 --- a/lldb/source/Expression/IRInterpreter.cpp +++ b/lldb/source/Expression/IRInterpreter.cpp @@ -498,7 +498,7 @@ IRInterpreter::CanInterpret (llvm::Module &module, default: { if (log) - log->Printf("Unsupported instruction: %s", PrintValue(ii).c_str()); + log->Printf("Unsupported instruction: %s", PrintValue(&*ii).c_str()); error.SetErrorToGenericError(); error.SetErrorString(unsupported_opcode_error); return false; @@ -522,7 +522,7 @@ IRInterpreter::CanInterpret (llvm::Module &module, if (!CanIgnoreCall(call_inst) && !support_function_calls) { if (log) - log->Printf("Unsupported instruction: %s", PrintValue(ii).c_str()); + log->Printf("Unsupported instruction: %s", PrintValue(&*ii).c_str()); error.SetErrorToGenericError(); error.SetErrorString(unsupported_opcode_error); return false; @@ -547,7 +547,7 @@ IRInterpreter::CanInterpret (llvm::Module &module, default: { if (log) - log->Printf("Unsupported ICmp predicate: %s", PrintValue(ii).c_str()); + log->Printf("Unsupported ICmp predicate: %s", PrintValue(&*ii).c_str()); error.SetErrorToGenericError(); error.SetErrorString(unsupported_opcode_error); @@ -663,16 +663,16 @@ IRInterpreter::Interpret (llvm::Module &module, lldb::addr_t ptr = args[arg_index]; - frame.MakeArgument(ai, ptr); + frame.MakeArgument(&*ai, ptr); } uint32_t num_insts = 0; - frame.Jump(function.begin()); + frame.Jump(&function.front()); while (frame.m_ii != frame.m_ie && (++num_insts < 4096)) { - const Instruction *inst = frame.m_ii; + const Instruction *inst = &*frame.m_ii; if (log) log->Printf("Interpreting %s", PrintValue(inst).c_str()); diff --git a/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp b/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp index 862f63b2908..1cefe154d2a 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp @@ -338,7 +338,7 @@ IRForTarget::ResolveFunctionPointers(llvm::Module &llvm_module) fi != llvm_module.end(); ++fi) { - Function *fun = fi; + Function *fun = &*fi; bool is_decl = fun->isDeclaration(); @@ -1955,7 +1955,7 @@ IRForTarget::ReplaceStaticLiterals (llvm::BasicBlock &basic_block) if (operand_constant_fp/* && operand_constant_fp->getType()->isX86_FP80Ty()*/) { static_constants.push_back(operand_val); - static_users.push_back(ii); + static_users.push_back(&*ii); } } } @@ -2280,7 +2280,7 @@ IRForTarget::ReplaceVariables (Function &llvm_function) return false; } - Argument *argument = iter; + Argument *argument = &*iter; if (argument->getName().equals("this")) { @@ -2294,7 +2294,7 @@ IRForTarget::ReplaceVariables (Function &llvm_function) return false; } - argument = iter; + argument = &*iter; } else if (argument->getName().equals("self")) { @@ -2326,7 +2326,7 @@ IRForTarget::ReplaceVariables (Function &llvm_function) return false; } - argument = iter; + argument = &*iter; } if (!argument->getName().equals("$__lldb_arg")) @@ -2624,7 +2624,7 @@ IRForTarget::runOnModule (Module &llvm_module) fi != fe; ++fi) { - llvm::Function *function = fi; + llvm::Function *function = &*fi; if (function->begin() == function->end()) continue; @@ -2699,7 +2699,7 @@ IRForTarget::runOnModule (Module &llvm_module) fi != fe; ++fi) { - llvm::Function *function = fi; + llvm::Function *function = &*fi; for (llvm::Function::iterator bbi = function->begin(), bbe = function->end(); bbi != bbe; @@ -2721,7 +2721,7 @@ IRForTarget::runOnModule (Module &llvm_module) fi != fe; ++fi) { - llvm::Function *function = fi; + llvm::Function *function = &*fi; for (llvm::Function::iterator bbi = function->begin(), bbe = function->end(); bbi != bbe; |