Fix comparator used for looking up previously instantiated EDDisassemblers.
authorShantonu Sen <ssen@apple.com>
Wed, 9 Feb 2011 21:03:19 +0000 (21:03 +0000)
committerShantonu Sen <ssen@apple.com>
Wed, 9 Feb 2011 21:03:19 +0000 (21:03 +0000)
commit80fd30563c341d6db778f407547707396ff97c75
treec3b0589cab1ede4f7071b7a611af4a3e28bd658f
parent697ffd61a47af38ac932628e942d75952f901fcd
Fix comparator used for looking up previously instantiated EDDisassemblers.

Now, Syntax is only used as a tie-breaker if the Arch
matches. Previously, a request for x86_64 disassembler followed by the
i386 disassembler in a single process would return the cached x86_64
disassembler. Fixes <rdar://problem/8958982>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125215 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCDisassembler/EDDisassembler.h