summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/DynamicFile.h
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-08-06 22:31:59 +0000
committerRui Ueyama <ruiu@google.com>2013-08-06 22:31:59 +0000
commit0ca149fce901456eca05ac5244a816303974db03 (patch)
treed10916d0f49f34b6533c73c11e9b52b91ab98b68 /lld/lib/ReaderWriter/ELF/DynamicFile.h
parent6fea779c2965b233425c9d4a6e7ff745ddd62b4e (diff)
downloadbcm5719-llvm-0ca149fce901456eca05ac5244a816303974db03.tar.gz
bcm5719-llvm-0ca149fce901456eca05ac5244a816303974db03.zip
Rename TargetInfo -> LinkingContext.
Also change some local variable names: "ti" -> "context" and "_targetInfo" -> "_context". Differential Revision: http://llvm-reviews.chandlerc.com/D1301 llvm-svn: 187823
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/DynamicFile.h')
-rw-r--r--lld/lib/ReaderWriter/ELF/DynamicFile.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/lld/lib/ReaderWriter/ELF/DynamicFile.h b/lld/lib/ReaderWriter/ELF/DynamicFile.h
index 0e45949c725..2ffe142b2b4 100644
--- a/lld/lib/ReaderWriter/ELF/DynamicFile.h
+++ b/lld/lib/ReaderWriter/ELF/DynamicFile.h
@@ -13,7 +13,7 @@
#include "Atoms.h"
#include "lld/Core/SharedLibraryFile.h"
-#include "lld/ReaderWriter/ELFTargetInfo.h"
+#include "lld/ReaderWriter/ELFLinkingContext.h"
#include "llvm/Object/ELF.h"
#include "llvm/Support/Path.h"
@@ -24,8 +24,8 @@ namespace lld {
namespace elf {
template <class ELFT> class DynamicFile LLVM_FINAL : public SharedLibraryFile {
public:
- static ErrorOr<std::unique_ptr<DynamicFile> > create(
- const ELFTargetInfo &ti, std::unique_ptr<llvm::MemoryBuffer> mb) {
+ static ErrorOr<std::unique_ptr<DynamicFile> >
+ create(const ELFLinkingContext &ti, std::unique_ptr<llvm::MemoryBuffer> mb) {
std::unique_ptr<DynamicFile> file(
new DynamicFile(ti, mb->getBufferIdentifier()));
llvm::OwningPtr<llvm::object::Binary> binaryFile;
@@ -110,15 +110,17 @@ public:
*this, name, _soname, sym->second._symbol);
}
- virtual const ELFTargetInfo &getTargetInfo() const { return _targetInfo; }
+ virtual const ELFLinkingContext &getLinkingContext() const {
+ return _context;
+ }
private:
- DynamicFile(const ELFTargetInfo &ti, StringRef name)
- : SharedLibraryFile(name), _targetInfo(ti) {}
+ DynamicFile(const ELFLinkingContext &context, StringRef name)
+ : SharedLibraryFile(name), _context(context) {}
mutable llvm::BumpPtrAllocator _alloc;
- const ELFTargetInfo &_targetInfo;
- std::unique_ptr<llvm::object::ELFObjectFile<ELFT>> _objFile;
+ const ELFLinkingContext &_context;
+ std::unique_ptr<llvm::object::ELFObjectFile<ELFT> > _objFile;
atom_collection_vector<DefinedAtom> _definedAtoms;
atom_collection_vector<UndefinedAtom> _undefinedAtoms;
atom_collection_vector<SharedLibraryAtom> _sharedLibraryAtoms;
OpenPOWER on IntegriCloud