projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5e23ef
)
[ms-inline asm] Add a comment about the determinism of the rewrite sort.
author
Chad Rosier
<mcrosier@apple.com>
Wed, 13 Feb 2013 21:27:17 +0000
(21:27 +0000)
committer
Chad Rosier
<mcrosier@apple.com>
Wed, 13 Feb 2013 21:27:17 +0000
(21:27 +0000)
llvm-svn: 175082
llvm/lib/MC/MCParser/AsmParser.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/MCParser/AsmParser.cpp
b/llvm/lib/MC/MCParser/AsmParser.cpp
index
2cce8b0
..
aa07ecb
100644
(file)
--- a/
llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/
llvm/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);