aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSource.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-08 22:55:31 +0000
committerChris Lattner <sabre@nondot.org>2010-09-08 22:55:31 +0000
commit37c1b43144d747c7c61257451c714f2b6a49b092 (patch)
tree35aa062013573d2cf93f7cb165b58345e9d5ce9b /lldb/source/Commands/CommandObjectSource.cpp
parent30ee4ef3089c97061a2b8d5fc1e0a369682d2a27 (diff)
downloadllvm-37c1b43144d747c7c61257451c714f2b6a49b092.zip
llvm-37c1b43144d747c7c61257451c714f2b6a49b092.tar.gz
llvm-37c1b43144d747c7c61257451c714f2b6a49b092.tar.bz2
fix a bunch of signed/unsigned comparison warnings, stop evaluating "getsize" every time through the loop.
llvm-svn: 113433
Diffstat (limited to 'lldb/source/Commands/CommandObjectSource.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectSource.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectSource.cpp b/lldb/source/Commands/CommandObjectSource.cpp
index 65a95db..996eb79 100644
--- a/lldb/source/Commands/CommandObjectSource.cpp
+++ b/lldb/source/Commands/CommandObjectSource.cpp
@@ -283,7 +283,7 @@ public:
if (m_options.m_modules.size() > 0)
{
ModuleList matching_modules;
- for (int i = 0; i < m_options.m_modules.size(); i++)
+ for (unsigned i = 0, e = m_options.m_modules.size(); i != e; i++)
{
FileSpec module_spec(m_options.m_modules[i].c_str());
if (module_spec)
@@ -457,7 +457,7 @@ public:
if (m_options.m_modules.size() > 0)
{
ModuleList matching_modules;
- for (int i = 0; i < m_options.m_modules.size(); i++)
+ for (unsigned i = 0, e = m_options.m_modules.size(); i != e; i++)
{
FileSpec module_spec(m_options.m_modules[i].c_str());
if (module_spec)
@@ -495,7 +495,7 @@ public:
bool got_multiple = false;
FileSpec *test_cu_spec = NULL;
- for (int i = 0; i < num_matches; i++)
+ for (unsigned i = 0; i < num_matches; i++)
{
sc_list.GetContextAtIndex(i, sc);
if (sc.comp_unit)