diff options
author | John Brawn <john.brawn@arm.com> | 2023-04-24 14:07:41 +0100 |
---|---|---|
committer | John Brawn <john.brawn@arm.com> | 2023-04-24 14:07:41 +0100 |
commit | 524ed4b1ba518d5dd5d67fb9593e0864b0e664a4 (patch) | |
tree | 6a0152829864cd37889e4436a44fb58daebce5c0 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5e10cd78780891ee6777ff6268cd727f1785d373 (diff) | |
download | llvm-524ed4b1ba518d5dd5d67fb9593e0864b0e664a4.zip llvm-524ed4b1ba518d5dd5d67fb9593e0864b0e664a4.tar.gz llvm-524ed4b1ba518d5dd5d67fb9593e0864b0e664a4.tar.bz2 |
[Serialization] Place command line defines in the correct file
Fix several problems related to serialization causing command line
defines to be reported as being built-in defines:
* When serializing the <built-in> and <command line> files don't
convert them into absolute paths.
* When deserializing SM_SLOC_BUFFER_ENTRY we need to call
setHasLineDirectives in the same way as we do for
SM_SLOC_FILE_ENTRY.
* When created suggested predefines based on the current command line
options we need to add line markers in the same way that
InitializePreprocessor does.
* Adjust a place in clangd where it was implicitly relying on command
line defines being treated as builtin.
Differential Revision: https://reviews.llvm.org/D144651
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions