mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[ms-inline asm] Add a comment about the determinism of the rewrite sort.
llvm-svn: 175082
This commit is contained in:
parent
829ef412eb
commit
0c12b80a10
@ -4030,6 +4030,8 @@ bool AsmParser::ParseDirectiveMSAlign(SMLoc IDLoc, ParseStatementInfo &Info) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// We are comparing pointers, but the pointers are relative to a single string.
|
||||
// Thus, this should always be deterministic.
|
||||
static int RewritesSort (const void *A, const void *B) {
|
||||
const AsmRewrite *AsmRewriteA = static_cast<const AsmRewrite*>(A);
|
||||
const AsmRewrite *AsmRewriteB = static_cast<const AsmRewrite*>(B);
|
||||
|
Loading…
Reference in New Issue
Block a user