[llvm-commits] [llvm] r141389 - in /llvm/trunk: lib/Object/ELFObjectFile.cpp tools/llvm-nm/llvm-nm.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Fri Oct 7 12:46:13 PDT 2011
Author: mspencer
Date: Fri Oct 7 14:46:12 2011
New Revision: 141389
URL: http://llvm.org/viewvc/llvm-project?rev=141389&view=rev
Log:
Fix GCC again.
Modified:
llvm/trunk/lib/Object/ELFObjectFile.cpp
llvm/trunk/tools/llvm-nm/llvm-nm.cpp
Modified: llvm/trunk/lib/Object/ELFObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/ELFObjectFile.cpp?rev=141389&r1=141388&r2=141389&view=diff
==============================================================================
--- llvm/trunk/lib/Object/ELFObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/ELFObjectFile.cpp Fri Oct 7 14:46:12 2011
@@ -762,7 +762,7 @@
if (Rel.w.c >= (relocsec->sh_size / relocsec->sh_entsize)) {
// We have reached the end of the relocations for this section. See if there
// is another relocation section.
- typename RelocMap_t::mapped_type &relocseclist =
+ typename RelocMap_t::mapped_type relocseclist =
SectionRelocMap.lookup(getSection(Rel.w.a));
// Do a binary search for the current reloc section index (which must be
Modified: llvm/trunk/tools/llvm-nm/llvm-nm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-nm/llvm-nm.cpp?rev=141389&r1=141388&r2=141389&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-nm/llvm-nm.cpp (original)
+++ llvm/trunk/tools/llvm-nm/llvm-nm.cpp Fri Oct 7 14:46:12 2011
@@ -271,9 +271,9 @@
static void DumpSymbolNamesFromObject(ObjectFile *obj) {
error_code ec;
- for (ObjectFile::symbol_iterator i = obj->begin_symbols(),
- e = obj->end_symbols();
- i != e; i.increment(ec)) {
+ for (symbol_iterator i = obj->begin_symbols(),
+ e = obj->end_symbols();
+ i != e; i.increment(ec)) {
if (error(ec)) break;
bool internal;
if (error(i->isInternal(internal))) break;
More information about the llvm-commits
mailing list