aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/DeltaAlgorithm.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-04 07:06:35 +0000
committerChris Lattner <sabre@nondot.org>2009-12-04 07:06:35 +0000
commit2474a7e9c231e067ff03336a9e68fa87e4967521 (patch)
treeabfb8b5c06b951d02f03283190b8aa74722af99d /llvm/lib/Support/DeltaAlgorithm.cpp
parent4665141ebdbb3a266651cd9ead022437008c64d8 (diff)
downloadllvm-2474a7e9c231e067ff03336a9e68fa87e4967521.zip
llvm-2474a7e9c231e067ff03336a9e68fa87e4967521.tar.gz
llvm-2474a7e9c231e067ff03336a9e68fa87e4967521.tar.bz2
Use PresumedLoc when emitting the 'included from' diagnostics. For a malformed
test like this: #line 4 "foo" #define XX ? #if XX #endif We now emit: In file included from t.c:7: foo:7:5: error: invalid token at start of a preprocessor expression #if XX ^ foo:5:12: note: instantiated from: #define XX ? ^ instead of: In file included from t.c:7: foo:7:5: error: invalid token at start of a preprocessor expression #if XX ^ ./t.h:6:12: note: instantiated from: #define XX ? ^ (where the note doesn't obey #line or print the include stack when needed). This fixes PR5617 llvm-svn: 90554
Diffstat (limited to 'llvm/lib/Support/DeltaAlgorithm.cpp')
0 files changed, 0 insertions, 0 deletions