summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eli.bendersky@intel.com>2012-04-30 10:06:27 +0000
committerEli Bendersky <eli.bendersky@intel.com>2012-04-30 10:06:27 +0000
commit32d5488f64b5a03959f15eda7dfe9f3cfad2b92b (patch)
treeea81f94855a4f7c387e45a4702acf3757d64660f /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
parent712d85a8c01591a5de9e91d6d8dc1a0a4c667546 (diff)
downloadbcm5719-llvm-32d5488f64b5a03959f15eda7dfe9f3cfad2b92b.tar.gz
bcm5719-llvm-32d5488f64b5a03959f15eda7dfe9f3cfad2b92b.zip
Code cleanup in RuntimeDyld:
- Add comments - Change field names to be more reasonable - Fix indentation and naming to conform to coding conventions - Remove unnecessary includes / replace them by forward declatations llvm-svn: 155815
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
index db6da8c8ef2..748693c6e18 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -410,14 +410,14 @@ void RuntimeDyldELF::processRelocationRef(const ObjRelocationInfo &Rel,
Stubs[Value] = Section.StubOffset;
uint8_t *StubTargetAddr = createStubFunction(Section.Address +
Section.StubOffset);
- AddRelocation(Value, Rel.SectionID,
+ addRelocation(Value, Rel.SectionID,
StubTargetAddr - Section.Address, ELF::R_ARM_ABS32);
resolveRelocation(Target, (uint64_t)Target, (uint64_t)Section.Address +
Section.StubOffset, RelType, 0);
Section.StubOffset += getMaxStubSize();
}
} else
- AddRelocation(Value, Rel.SectionID, Rel.Offset, RelType);
+ addRelocation(Value, Rel.SectionID, Rel.Offset, RelType);
}
bool RuntimeDyldELF::isCompatibleFormat(const MemoryBuffer *InputBuffer) const {
OpenPOWER on IntegriCloud