diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-02-13 21:27:17 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-02-13 21:27:17 +0000 |
commit | 19aa3e37dcf09b126bbd83e11ec9059615c6bd8b (patch) | |
tree | 5f0eb804bce544838060912e0f5f7cb6980171d4 /lib/MC | |
parent | 7c62701c2273839f15a65b4f43ac71b270673221 (diff) |
[ms-inline asm] Add a comment about the determinism of the rewrite sort.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 2cce8b0e43f..aa07ecb4e5d 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -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); |