mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-05 13:29:22 +00:00
Fix a few changes I missed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01a4db3ed4
commit
20990397a4
@ -56,9 +56,9 @@ static void DumpInput(const StringRef &Filename) {
|
|||||||
StringRef DebugStringSection;
|
StringRef DebugStringSection;
|
||||||
|
|
||||||
error_code ec;
|
error_code ec;
|
||||||
for (ObjectFile::section_iterator i = Obj->begin_sections(),
|
for (section_iterator i = Obj->begin_sections(),
|
||||||
e = Obj->end_sections();
|
e = Obj->end_sections();
|
||||||
i != e; i.increment(ec)) {
|
i != e; i.increment(ec)) {
|
||||||
StringRef name;
|
StringRef name;
|
||||||
i->getName(name);
|
i->getName(name);
|
||||||
StringRef data;
|
StringRef data;
|
||||||
|
@ -112,9 +112,9 @@ static void PrintObjectSectionSizes(ObjectFile *o) {
|
|||||||
std::size_t max_size_len = strlen("size");
|
std::size_t max_size_len = strlen("size");
|
||||||
std::size_t max_addr_len = strlen("addr");
|
std::size_t max_addr_len = strlen("addr");
|
||||||
error_code ec;
|
error_code ec;
|
||||||
for (ObjectFile::section_iterator i = o->begin_sections(),
|
for (section_iterator i = o->begin_sections(),
|
||||||
e = o->end_sections(); i != e;
|
e = o->end_sections(); i != e;
|
||||||
i.increment(ec)) {
|
i.increment(ec)) {
|
||||||
if (error(ec))
|
if (error(ec))
|
||||||
return;
|
return;
|
||||||
uint64_t size = 0;
|
uint64_t size = 0;
|
||||||
@ -154,9 +154,9 @@ static void PrintObjectSectionSizes(ObjectFile *o) {
|
|||||||
<< "%#" << max_addr_len << radix_fmt << "\n";
|
<< "%#" << max_addr_len << radix_fmt << "\n";
|
||||||
|
|
||||||
// Print each section.
|
// Print each section.
|
||||||
for (ObjectFile::section_iterator i = o->begin_sections(),
|
for (section_iterator i = o->begin_sections(),
|
||||||
e = o->end_sections(); i != e;
|
e = o->end_sections(); i != e;
|
||||||
i.increment(ec)) {
|
i.increment(ec)) {
|
||||||
if (error(ec))
|
if (error(ec))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -190,9 +190,9 @@ static void PrintObjectSectionSizes(ObjectFile *o) {
|
|||||||
|
|
||||||
// Make one pass over the section table to calculate sizes.
|
// Make one pass over the section table to calculate sizes.
|
||||||
error_code ec;
|
error_code ec;
|
||||||
for (ObjectFile::section_iterator i = o->begin_sections(),
|
for (section_iterator i = o->begin_sections(),
|
||||||
e = o->end_sections(); i != e;
|
e = o->end_sections(); i != e;
|
||||||
i.increment(ec)) {
|
i.increment(ec)) {
|
||||||
if (error(ec))
|
if (error(ec))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user