diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-08 22:55:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-08 22:55:31 +0000 |
commit | 37c1b43144d747c7c61257451c714f2b6a49b092 (patch) | |
tree | 35aa062013573d2cf93f7cb165b58345e9d5ce9b /lldb/source/Commands/CommandObjectSource.cpp | |
parent | 30ee4ef3089c97061a2b8d5fc1e0a369682d2a27 (diff) | |
download | llvm-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.cpp | 6 |
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) |