[PATCH] D72347: [NFC][XCOFF] Refactor Csect creation into TargetLoweringObjectFile
Digger via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 8 08:09:32 PST 2020
DiggerLin added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h:251
+ MCSection *
+ getSectionForExternalReference(const GlobalObject *GO,
+ const TargetMachine &TM) const override;
----------------
I think we can
getSectionForExternalReference(const MCSymbol *Sym). const override here ?
I search all the place where invoke getSectionForExternalReference , it can use the function define getSectionForExternalReference(const MCSymbol *Sym)
the benefit of using getSectionForExternalReference(const MCSymbol *Sym) , we save one parameter and have some function parameter as getSectionForFunctionDescriptor and getSectionForTOCEntry
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72347/new/
https://reviews.llvm.org/D72347
More information about the llvm-commits
mailing list