[llvm] r218061 - [MCJIT] Fix a debugging-output formatting bug in RuntimeDyld.
Lang Hames
lhames at gmail.com
Thu Sep 18 09:43:24 PDT 2014
Author: lhames
Date: Thu Sep 18 11:43:24 2014
New Revision: 218061
URL: http://llvm.org/viewvc/llvm-project?rev=218061&view=rev
Log:
[MCJIT] Fix a debugging-output formatting bug in RuntimeDyld.
The mismatched mask (7 vs (ColsPerRow-1)) could lead to partial lines being
printed out of place.
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp?rev=218061&r1=218060&r2=218061&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp Thu Sep 18 11:43:24 2014
@@ -50,7 +50,7 @@ static void dumpSectionMemory(const Sect
uint8_t *DataAddr = S.Address;
uint64_t LoadAddr = S.LoadAddress;
- unsigned StartPadding = LoadAddr & 7;
+ unsigned StartPadding = LoadAddr & (ColsPerRow - 1);
unsigned BytesRemaining = S.Size;
if (StartPadding) {
More information about the llvm-commits
mailing list