summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2019-09-30 15:05:35 +0000
committerTeresa Johnson <tejohnson@google.com>2019-09-30 15:05:35 +0000
commit57dbfe194cb53b25246a40e8a73e5c77cc804619 (patch)
treef9bee83577707fa33ef90a7a1e0ee2d5edc3088f /llvm/lib/CodeGen/StackProtector.cpp
parent14945186c28ee41162eedc7fa89e04548f2bda6d (diff)
downloadbcm5719-llvm-57dbfe194cb53b25246a40e8a73e5c77cc804619.tar.gz
bcm5719-llvm-57dbfe194cb53b25246a40e8a73e5c77cc804619.zip
[Clang] Use -main-file-name for source filename if not set
-main-file-name is currently used to set the source name used in debug information. If the source filename is "-" and -main-file-name is set, then use the filename also for source_filename and ModuleID of the output. The argument is generally used outside the internal clang calls when running clang in a wrapper like icecc which gives the source via stdin but still wants to get a object file with the original source filename both in debug info and IR code. Patch by: the_jk (Joel Klinghed) Differential Revision: https://reviews.llvm.org/D67592 llvm-svn: 373217
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud