This change adds support for --add-gnu-debuglink to llvm-objcopy
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
tools/llvm-objcopy/Object.cpp | ||
---|---|---|
359–360 | "turns out to be fine" implies that you don't know the underlying code. I think it might be better to remove this first sentence and simply say "For sections not found in segments, OriginalOffset is only used to establish the order that sections should go in." | |
364 | Why not use std::numeric_limits<uint64_t>::max()? | |
384 | Could this also supply the appropriate error message, please, e.g. "file not found" or "access denied". | |
tools/llvm-objcopy/llvm-objcopy.cpp | ||
121 | Has this line been clang-formatted? |
- Used numeric limits max instead of a cast and bitwise hack
- Modified comment
- Clang formated add-gnu-debuglink
- Updated error message to display the specific error not just the vague "could not be opened" message.
LGTM, with one change.
tools/llvm-objcopy/Object.h | ||
---|---|---|
362–363 | Do you need this constructor? It's not called anywhere as far as I can see? |
Do you need this constructor? It's not called anywhere as far as I can see?