aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-09-26 17:46:45 +0000
committerChris Lattner <sabre@nondot.org>2008-09-26 17:46:45 +0000
commite744d32b7269ce343b487f67fdeb8179cd21c886 (patch)
tree49ee54790007a6571e58aa9e0663d10a4488dd60 /llvm/lib/Bitcode/Reader/BitcodeReader.h
parent68d2190226c47435f2d49fd046d09a8469ae6060 (diff)
downloadllvm-e744d32b7269ce343b487f67fdeb8179cd21c886.zip
llvm-e744d32b7269ce343b487f67fdeb8179cd21c886.tar.gz
llvm-e744d32b7269ce343b487f67fdeb8179cd21c886.tar.bz2
emulate a bit of GCC path lookup weirdness: if a system
directory is shadowed by a user directory in the lookup path, ignore the user directory not the system one. Not doing this can affect file lookup and the "is a system header" bit on locations. For example: clang -v -I/usr/include inc.c -E | & grep /usr/inc now prints: # 1 "/usr/include/i386/_types.h" 1 3 4 # 37 "/usr/include/i386/_types.h" 3 4 # 70 "/usr/include/i386/_types.h" 3 4 instead of: # 1 "/usr/include/i386/_types.h" 1 # 37 "/usr/include/i386/_types.h" # 70 "/usr/include/i386/_types.h" This is part of rdar://6243860. llvm-svn: 56669
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.h')
0 files changed, 0 insertions, 0 deletions