[PATCH] D61767: [llvm-elfabi] Emit ELF header and string table section

Haowei Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 19 14:27:34 PST 2020


haowei marked an inline comment as done.
haowei added inline comments.


================
Comment at: llvm/tools/llvm-elfabi/llvm-elfabi.cpp:125
 
+void fatalError(Error Err) {
+  WithColor::defaultErrorHandler(std::move(Err));
----------------
MaskRay wrote:
> haowei wrote:
> > jhenderson wrote:
> > > haowei wrote:
> > > > MaskRay wrote:
> > > > > Use static for these functions
> > > > > 
> > > > > https://llvm.org/docs/CodingStandards.html#anonymous-namespaces
> > > > > 
> > > > > The coding standard also says non-exported class declarations should be written in anonymous namespaces
> > > > I added static.
> > > > 
> > > > This is not a class declaration I guess I don't need to put it into anonymous namespace.
> > > > This is not a class declaration I guess I don't need to put it into anonymous namespace.
> > > 
> > > @MaskRay might be referring to the new classes in ElfObjHandler.cpp like OutputSection etc
> > I put those classes into anonymous namespace. Does it look good?
> Please make all new functions static if not used outside the file.
All new functions that are not used outside of the translation unit was added with static modifier, please let me know if you found anything I missed.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61767/new/

https://reviews.llvm.org/D61767



More information about the llvm-commits mailing list