Put code that creates references to symbol+addend behind MCPlusBuilder.
Will use this later in validate memory references pass.
Details
- Reviewers
Amir maksfb yota9 - Group Reviewers
Restricted Project - Commits
- rG8d1fc45dc377: [BOLT][NFC] Refactor creation of symbol+addend references
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks for the refactoring!
bolt/lib/Core/BinaryFunction.cpp | ||
---|---|---|
1054 | Maybe change assert to if + exit ? |
bolt/lib/Core/BinaryFunction.cpp | ||
---|---|---|
1054 | Are we migrating away from assertions? This is not supposed to fail at all, unless we modify our codebase in weird ways, so I would like to assert here. But I'm not sure how hard are people trying to get rid of assertions. Another reason this might fail is if somebody is writing a new backend and fails to replace the memory operand of a given instruction that they need to support replacing. |
Thanks all
bolt/lib/Core/BinaryFunction.cpp | ||
---|---|---|
1054 | I don't follow this change, assertions (at least in this file) follow lower case messages with no period. Am I missing something? |
bolt/lib/Core/BinaryFunction.cpp | ||
---|---|---|
1054 | You are right about the existing assertions. The idea is to move toward LLVM standard in messages and assertions, hence the suggestion. |
Maybe change assert to if + exit ?