Use the setter in BOLT to allow printing names with variant kind in the name
(e.g. "func@PLT").
Fixes BOLT buildbot tests that broke after D122516:
https://lab.llvm.org/buildbot/#/builders/215/builds/3595
Details
Details
- Reviewers
rafauler maksfb - Commits
- rGc31af7cfe3b9: [MC][BOLT] Add setter for AllowAtInName
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
bolt/lib/Core/BinaryContext.cpp | ||
---|---|---|
165 | nit |
Comment Actions
If you look at LLVM itself, normally it refers to PLT entries using an MCSymbolRefExpr marked up with MCSymbolRefExpr::VK_PLT. Ideally, BOLT would do the same thing... but maybe not worth the effort. Symbols with an "@" sign shouldn't show up in practice on non-Windows targets.
Comment Actions
Since BOLT operates on a post-link binary, it sees PLT entries created by the linker and marks them with "sym@PLT", i.e. there will be both - undefined "sym" and defined "sym@PLT". In theory, we can use VK_PLT, but on the surface it looks as it will create more problems for BOLT.
nit