summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/GeneratePCH.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-11-30 05:23:00 +0000
committerDouglas Gregor <dgregor@apple.com>2010-11-30 05:23:00 +0000
commit936a5b44eea36a698946dde3b0a1e35b21244209 (patch)
treea765e3c9a8e1528c6ea204d48a6b9a39fff753e5 /clang/lib/Serialization/GeneratePCH.cpp
parentebd45a004d6a1cd6e2cebb36fbaf07fc612b0be6 (diff)
downloadbcm5719-llvm-936a5b44eea36a698946dde3b0a1e35b21244209.tar.gz
bcm5719-llvm-936a5b44eea36a698946dde3b0a1e35b21244209.zip
When loading a precompiled preamble, use the file ID of the
precompiled preamble as the "main" source file's file ID within the source manager. This makes compiling with a precompiled preamble produce the same source locations as when compiling without the precompiled preamble; prior to this change, we ended up with different file IDs for source locations within the precompiled preamble vs. those after the precompiled preamble, even for entities (e.g., preprocessing entities) in the same file. llvm-svn: 120390
Diffstat (limited to 'clang/lib/Serialization/GeneratePCH.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud