aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-03-27 00:56:56 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-03-27 00:56:56 +0000
commitefd009de1c1ff206d32aa2b9db96bfc6a25d5256 (patch)
tree30b4983961c7c0fb9ca5880a780421029e595a43 /llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
parent551662bf5da58dc040eaafe5fa9417c28bf868fe (diff)
downloadllvm-efd009de1c1ff206d32aa2b9db96bfc6a25d5256.zip
llvm-efd009de1c1ff206d32aa2b9db96bfc6a25d5256.tar.gz
llvm-efd009de1c1ff206d32aa2b9db96bfc6a25d5256.tar.bz2
When we see 'Class(X' or 'Class::Class(X' and we suspect that it names a
constructor, but X is not a known typename, check whether the tokens could possibly match the syntax of a declarator before concluding that it isn't a constructor. If it's definitely ill-formed, assume it is a constructor. Empirical evidence suggests that this pattern is much more often a constructor with a typoed (or not-yet-declared) type name than any of the other possibilities, so the extra cost of the check is not expected to be problematic. llvm-svn: 153488
Diffstat (limited to 'llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions