Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
150 ms | lldb-unit.Host/_/HostTests::Unknown Unit Message ("") |
Event Timeline
llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.h | ||
---|---|---|
50 | Can this function be private in WebAssemblyAsmPrinter? |
llvm/include/llvm/MC/MCSymbolWasm.h | ||
---|---|---|
26–28 | Do these need to be std::strings, or could they just be StringRefs? It looks like they're only set/get in this class, never modified by it - StringRefs might be more suitable? (does the empty string need to be a separate state from "none"/null - I'd probably still go with Optional<StringRef> then - though opinions certainly might differ there - in that case (where opinions differ & you prefer std::string* over Optional<StringRef> here) I'd at least make them const std::string*)) |
llvm/include/llvm/MC/MCSymbolWasm.h | ||
---|---|---|
26–28 | Hm, you are correct. I'm not sure why I didn't go with Optional<StringRef>. I'll update. |
Do these need to be std::strings, or could they just be StringRefs?
It looks like they're only set/get in this class, never modified by it - StringRefs might be more suitable? (does the empty string need to be a separate state from "none"/null - I'd probably still go with Optional<StringRef> then - though opinions certainly might differ there - in that case (where opinions differ & you prefer std::string* over Optional<StringRef> here) I'd at least make them const std::string*))