MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / SanitizeDisassembly

Function SanitizeDisassembly

Source/Tools/CodeSizeValidation/Main.cpp:99–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97constexpr std::string_view BlowUpMsg = "Blow-up Amt: ";
98
99static std::string_view SanitizeDisassembly(std::string_view Message) {
100 auto it = Message.find(" (addr");
101 // If it contains an address calculation, strip it out.
102 Message = Message.substr(0, it);
103 if (Message.find("adrp ") != std::string_view::npos || Message.find("adr ") != std::string_view::npos) {
104 Message = Message.substr(0, Message.find(" #"));
105 }
106 return Message;
107}
108
109bool CodeSizeValidation::ParseMessage(const char* Message) {
110 // std::string_view doesn't have contains until c++23.

Callers 1

ParseMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected