[PATCH] D68062: Propeller lld framework for basicblock sections
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 00:12:03 PDT 2019
ruiu added inline comments.
================
Comment at: lld/ELF/Propeller.h:136
+ uint64_t Size) {
+ auto *Sym = new SymbolEntry(Ordinal, Name, std::move(Aliases),
+ SymbolEntry::INVALID_ADDRESS, Size,
----------------
shenhan wrote:
> MaskRay wrote:
> > Prefer unique_ptr to raw pointers.
> unique_ptr<char> type does not work smoothly w/ "getline(char **lineptr, size_t *n, FILE *stream)", which accepts a pointer to pointer parameter, which could be deallocated / reallocated by getline.
If `getline` doesn't work smoothly with a smart pointer, please consider not using that function. You may want to take a look at `getLines()` in lld/Common/Args.cpp.
Repository:
rLLD LLVM Linker
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68062/new/
https://reviews.llvm.org/D68062
More information about the llvm-commits
mailing list