All of these methods will invoke getOrCreateSymbol(const Twine &Name), using Twine here makes these methods more flexible.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I recently worked on an assembler which allow user add prefix or set values to symbols, getOrCreateSymbol can create symbols with prefix in Twine, but if I want to set the value for the symbol with prefix, setSymbolValue no longer works because it expect StringRef rather than Twine like getOrCreateSymbol.