[lld] r233738 - Rename _AArch64TargetLayout.
Rui Ueyama
ruiu at google.com
Tue Mar 31 12:35:35 PDT 2015
Author: ruiu
Date: Tue Mar 31 14:35:35 2015
New Revision: 233738
URL: http://llvm.org/viewvc/llvm-project?rev=233738&view=rev
Log:
Rename _AArch64TargetLayout.
This change should have been done in r233737, but I made a mistake to
not include into that.
Modified:
lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64DynamicLibraryWriter.h
lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64ExecutableWriter.h
lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.cpp
lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.h
Modified: lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64DynamicLibraryWriter.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64DynamicLibraryWriter.h?rev=233738&r1=233737&r2=233738&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64DynamicLibraryWriter.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64DynamicLibraryWriter.h Tue Mar 31 14:35:35 2015
@@ -43,14 +43,14 @@ private:
std::unique_ptr<GOTFile> _gotFile;
AArch64LinkingContext &_ctx;
- AArch64TargetLayout<ELFT> &_AArch64Layout;
+ AArch64TargetLayout<ELFT> &_aarch64Layout;
};
template <class ELFT>
AArch64DynamicLibraryWriter<ELFT>::AArch64DynamicLibraryWriter(
AArch64LinkingContext &ctx, AArch64TargetLayout<ELFT> &layout)
: DynamicLibraryWriter<ELFT>(ctx, layout), _gotFile(new GOTFile(ctx)),
- _ctx(ctx), _AArch64Layout(layout) {}
+ _ctx(ctx), _aarch64Layout(layout) {}
template <class ELFT>
bool AArch64DynamicLibraryWriter<ELFT>::createImplicitFiles(
Modified: lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64ExecutableWriter.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64ExecutableWriter.h?rev=233738&r1=233737&r2=233738&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64ExecutableWriter.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64ExecutableWriter.h Tue Mar 31 14:35:35 2015
@@ -42,14 +42,14 @@ private:
std::unique_ptr<GOTFile> _gotFile;
AArch64LinkingContext &_ctx;
- AArch64TargetLayout<ELFT> &_AArch64Layout;
+ AArch64TargetLayout<ELFT> &_aarch64Layout;
};
template <class ELFT>
AArch64ExecutableWriter<ELFT>::AArch64ExecutableWriter(
AArch64LinkingContext &ctx, AArch64TargetLayout<ELFT> &layout)
: ExecutableWriter<ELFT>(ctx, layout), _gotFile(new GOTFile(ctx)),
- _ctx(ctx), _AArch64Layout(layout) {}
+ _ctx(ctx), _aarch64Layout(layout) {}
template <class ELFT>
bool AArch64ExecutableWriter<ELFT>::createImplicitFiles(
Modified: lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.cpp?rev=233738&r1=233737&r2=233738&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.cpp Tue Mar 31 14:35:35 2015
@@ -18,8 +18,8 @@ using namespace elf;
AArch64TargetHandler::AArch64TargetHandler(AArch64LinkingContext &ctx)
: _ctx(ctx),
- _AArch64TargetLayout(new AArch64TargetLayout<AArch64ELFType>(ctx)),
- _AArch64RelocationHandler(new AArch64TargetRelocationHandler()) {}
+ _aarch64TargetLayout(new AArch64TargetLayout<AArch64ELFType>(ctx)),
+ _aarch64RelocationHandler(new AArch64TargetRelocationHandler()) {}
void AArch64TargetHandler::registerRelocationNames(Registry ®istry) {
registry.addKindTable(Reference::KindNamespace::ELF,
@@ -30,10 +30,10 @@ std::unique_ptr<Writer> AArch64TargetHan
switch (this->_ctx.getOutputELFType()) {
case llvm::ELF::ET_EXEC:
return llvm::make_unique<AArch64ExecutableWriter<AArch64ELFType>>(
- _ctx, *_AArch64TargetLayout.get());
+ _ctx, *_aarch64TargetLayout.get());
case llvm::ELF::ET_DYN:
return llvm::make_unique<AArch64DynamicLibraryWriter<AArch64ELFType>>(
- _ctx, *_AArch64TargetLayout.get());
+ _ctx, *_aarch64TargetLayout.get());
case llvm::ELF::ET_REL:
llvm_unreachable("TODO: support -r mode");
default:
Modified: lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.h?rev=233738&r1=233737&r2=233738&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.h Tue Mar 31 14:35:35 2015
@@ -31,13 +31,13 @@ public:
AArch64TargetHandler(AArch64LinkingContext &ctx);
AArch64TargetLayout<AArch64ELFType> &getTargetLayout() override {
- return *(_AArch64TargetLayout.get());
+ return *(_aarch64TargetLayout.get());
}
void registerRelocationNames(Registry ®istry) override;
const AArch64TargetRelocationHandler &getRelocationHandler() const override {
- return *(_AArch64RelocationHandler.get());
+ return *(_aarch64RelocationHandler.get());
}
std::unique_ptr<Reader> getObjReader() override {
@@ -53,8 +53,8 @@ public:
private:
static const Registry::KindStrings kindStrings[];
AArch64LinkingContext &_ctx;
- std::unique_ptr<AArch64TargetLayout<AArch64ELFType>> _AArch64TargetLayout;
- std::unique_ptr<AArch64TargetRelocationHandler> _AArch64RelocationHandler;
+ std::unique_ptr<AArch64TargetLayout<AArch64ELFType>> _aarch64TargetLayout;
+ std::unique_ptr<AArch64TargetRelocationHandler> _aarch64RelocationHandler;
};
} // end namespace elf
More information about the llvm-commits
mailing list