mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
[JITLink] Fix a typo in a comment.
Thanks to @jcmac for pointing this out.
This commit is contained in:
parent
168b84c52f
commit
65ff3816c6
@ -80,13 +80,13 @@ protected:
|
||||
// For debug dumping of the link graph.
|
||||
virtual StringRef getEdgeKindName(Edge::Kind K) const = 0;
|
||||
|
||||
// Alight a JITTargetAddress to conform with block alignment requirements.
|
||||
// Align a JITTargetAddress to conform with block alignment requirements.
|
||||
static JITTargetAddress alignToBlock(JITTargetAddress Addr, Block &B) {
|
||||
uint64_t Delta = (B.getAlignmentOffset() - Addr) % B.getAlignment();
|
||||
return Addr + Delta;
|
||||
}
|
||||
|
||||
// Alight a pointer to conform with block alignment requirements.
|
||||
// Align a pointer to conform with block alignment requirements.
|
||||
static char *alignToBlock(char *P, Block &B) {
|
||||
uint64_t PAddr = static_cast<uint64_t>(reinterpret_cast<uintptr_t>(P));
|
||||
uint64_t Delta = (B.getAlignmentOffset() - PAddr) % B.getAlignment();
|
||||
|
Loading…
Reference in New Issue
Block a user