aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorPeter Klausler <pklausler@nvidia.com>2025-04-04 09:49:57 -0700
committerGitHub <noreply@github.com>2025-04-04 09:49:57 -0700
commit5942f0269e62021620e871bfe2e671f4f0f2d932 (patch)
treeb6c61d0439c7e11a43ae4157486a632ddad88434 /clang/lib/Frontend/CompilerInstance.cpp
parent70a1445e401f6d7b531933ab157fba98ec84f69f (diff)
downloadllvm-5942f0269e62021620e871bfe2e671f4f0f2d932.zip
llvm-5942f0269e62021620e871bfe2e671f4f0f2d932.tar.gz
llvm-5942f0269e62021620e871bfe2e671f4f0f2d932.tar.bz2
[flang] Preserve compiler directives in -E output (#133959)
No longer require -fopenmp or -fopenacc with -E, unless specific version number options are also required for predefined macros. This means that most source can be preprocessed with -E and then later compiled with -fopenmp, -fopenacc, or neither. This means that OpenMP conditional compilation lines (!$) are also passed through to -E output. The tricky part of this patch was dealing with the fact that those conditional lines can also contain regular Fortran line continuation, and that now has to be deferred when !$ lines are interspersed.
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions