diff options
author | Steve Naroff <snaroff@apple.com> | 2009-10-21 13:56:23 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-10-21 13:56:23 +0000 |
commit | 20bad0b7c65bb74adc64d31ef76dcc12ff4d6737 (patch) | |
tree | 8df7876b0c1b4feecc371c0919afcba99acc3415 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 45f99d662157a9c41445355b5494bce3acf31b46 (diff) | |
download | bcm5719-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