[lld] r262911 - ELF: Rename NoInhibitExec -> NoinhibitExec.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 7 20:06:29 PST 2016
Author: ruiu
Date: Mon Mar 7 22:06:29 2016
New Revision: 262911
URL: http://llvm.org/viewvc/llvm-project?rev=262911&view=rev
Log:
ELF: Rename NoInhibitExec -> NoinhibitExec.
The variables corresponding to command line options are named mechanically.
Because the option for the variable is -noinhibit-exec and not -no-inhibit-exec,
it should be name this way.
Modified:
lld/trunk/ELF/Config.h
lld/trunk/ELF/Driver.cpp
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Config.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Config.h?rev=262911&r1=262910&r2=262911&view=diff
==============================================================================
--- lld/trunk/ELF/Config.h (original)
+++ lld/trunk/ELF/Config.h Mon Mar 7 22:06:29 2016
@@ -65,8 +65,8 @@ struct Configuration {
bool GnuHash = false;
bool ICF;
bool Mips64EL = false;
- bool NoInhibitExec;
bool NoUndefined;
+ bool NoinhibitExec;
bool Nostdlib;
bool PrintGcSections;
bool Relocatable;
Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=262911&r1=262910&r2=262911&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Mon Mar 7 22:06:29 2016
@@ -232,8 +232,8 @@ void LinkerDriver::readConfigs(opt::Inpu
Config->ExportDynamic = Args.hasArg(OPT_export_dynamic);
Config->GcSections = Args.hasArg(OPT_gc_sections);
Config->ICF = Args.hasArg(OPT_icf);
- Config->NoInhibitExec = Args.hasArg(OPT_noinhibit_exec);
Config->NoUndefined = Args.hasArg(OPT_no_undefined);
+ Config->NoinhibitExec = Args.hasArg(OPT_noinhibit_exec);
Config->Nostdlib = Args.hasArg(OPT_nostdlib);
Config->PrintGcSections = Args.hasArg(OPT_print_gc_sections);
Config->Relocatable = Args.hasArg(OPT_relocatable);
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=262911&r1=262910&r2=262911&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Mon Mar 7 22:06:29 2016
@@ -519,7 +519,7 @@ static void reportUndefined(SymbolTable<
std::string Msg = "undefined symbol: " + Sym->getName().str();
if (InputFile *File = Symtab.findFile(Sym))
Msg += " in " + File->getName().str();
- if (Config->NoInhibitExec)
+ if (Config->NoinhibitExec)
warning(Msg);
else
error(Msg);
More information about the llvm-commits
mailing list