[compiler-rt] [win/asan] Support instructions in GetInstructionSize used by Wine. (PR #113085)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 06:48:29 PST 2024


Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/113085 at github.com>


================
@@ -63,6 +63,9 @@ bool OverrideFunctionWithTrampoline(
 // Exposed for unittests
 void TestOnlyReleaseTrampolineRegions();
 
+// Exposed for unittests
+SIZE_T test_GetInstructionSize(uptr address, SIZE_T* rel_offset);
----------------
zmodem wrote:

Maybe call this `TestOnly...` like the function above?

https://github.com/llvm/llvm-project/pull/113085


More information about the llvm-commits mailing list