From bd27849e4ba6f8a50abeaa2124f3091cda5db114 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sat, 29 Apr 2017 23:06:43 +0000 Subject: [PATCH] Rename RPath Rpath for consistency. NFC. For an option -foo-bar-baz, we have Config->FooBarBaz. Since -rpath is -rpath and not -r-path, it should be Config->Rpath instead Config->RPath. llvm-svn: 301759 --- lld/ELF/Config.h | 2 +- lld/ELF/Driver.cpp | 4 ++-- lld/ELF/SyntheticSections.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h index d25c63c..1ace4aa 100644 --- a/lld/ELF/Config.h +++ b/lld/ELF/Config.h @@ -89,7 +89,7 @@ struct Configuration { llvm::StringRef SoName; llvm::StringRef Sysroot; llvm::StringRef ThinLTOCacheDir; - std::string RPath; + std::string Rpath; std::vector VersionDefinitions; std::vector AuxiliaryList; std::vector SearchPaths; diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index fce6321..1e3dfa0 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -399,7 +399,7 @@ static std::vector getArgs(opt::InputArgList &Args, int Id) { return V; } -static std::string getRPath(opt::InputArgList &Args) { +static std::string getRpath(opt::InputArgList &Args) { std::vector V = getArgs(Args, OPT_rpath); return llvm::join(V.begin(), V.end(), ":"); } @@ -640,7 +640,7 @@ void LinkerDriver::readConfigs(opt::InputArgList &Args) { Config->OutputFile = getString(Args, OPT_o); Config->Pie = getArg(Args, OPT_pie, OPT_nopie, false); Config->PrintGcSections = Args.hasArg(OPT_print_gc_sections); - Config->RPath = getRPath(Args); + Config->Rpath = getRpath(Args); Config->Relocatable = Args.hasArg(OPT_relocatable); Config->SaveTemps = Args.hasArg(OPT_save_temps); Config->SearchPaths = getArgs(Args, OPT_L); diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index e137f59..66445d0 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -1022,9 +1022,9 @@ template void DynamicSection::addEntries() { // fixed early. for (StringRef S : Config->AuxiliaryList) add({DT_AUXILIARY, In::DynStrTab->addString(S)}); - if (!Config->RPath.empty()) + if (!Config->Rpath.empty()) add({Config->EnableNewDtags ? DT_RUNPATH : DT_RPATH, - In::DynStrTab->addString(Config->RPath)}); + In::DynStrTab->addString(Config->Rpath)}); for (SharedFile *F : Symtab::X->getSharedFiles()) if (F->isNeeded()) add({DT_NEEDED, In::DynStrTab->addString(F->SoName)}); -- 2.7.4