summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-10-21 13:56:23 +0000
committerSteve Naroff <snaroff@apple.com>2009-10-21 13:56:23 +0000
commit20bad0b7c65bb74adc64d31ef76dcc12ff4d6737 (patch)
tree8df7876b0c1b4feecc371c0919afcba99acc3415 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent45f99d662157a9c41445355b5494bce3acf31b46 (diff)
downloadbcm5719-llvm-20bad0b7c65bb74adc64d31ef76dcc12ff4d6737.tar.gz
bcm5719-llvm-20bad0b7c65bb74adc64d31ef76dcc12ff4d6737.zip
Extend clang_getCursor() to take a 'relativeDecl' argument (so speed up searching). Without a 'relativeDecl', the algorithm is n-squared. For example, running the following command on 'Large.m' takes hours without a 'relatvieDecl'.
snaroff% time ../../Debug/bin/c-index-test Large.ast all > Large.out snaroff% cat Large.m #import <Cocoa/Cocoa.h> #import <QuickTime/QuickTime.h> #import <OpenGL/OpenGL.h> With a 'relativeDecl', it takes <30 seconds:-) llvm-svn: 84760
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud