diff options
| author | Dan McGregor <dan.mcgregor@usask.ca> | 2019-11-26 14:23:07 -0800 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-11-26 15:17:49 -0800 |
| commit | 6c92cdff72251a7d13ab3958b04fba72dfcaebb1 (patch) | |
| tree | 109f389b97c23284a0af76927c7f1650f1fb9787 /clang/test/CodeGen/debug-prefix-map.c | |
| parent | e177c5a00da34ba61b762e2b32bd96e33b0c10b4 (diff) | |
| download | bcm5719-llvm-6c92cdff72251a7d13ab3958b04fba72dfcaebb1.tar.gz bcm5719-llvm-6c92cdff72251a7d13ab3958b04fba72dfcaebb1.zip | |
Initial implementation of -fmacro-prefix-map and -ffile-prefix-map
GCC 8 implements -fmacro-prefix-map. Like -fdebug-prefix-map, it replaces a string prefix for the __FILE__ macro.
-ffile-prefix-map is the union of -fdebug-prefix-map and -fmacro-prefix-map
Reviewed By: rnk, Lekensteyn, maskray
Differential Revision: https://reviews.llvm.org/D49466
Diffstat (limited to 'clang/test/CodeGen/debug-prefix-map.c')
| -rw-r--r-- | clang/test/CodeGen/debug-prefix-map.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/CodeGen/debug-prefix-map.c b/clang/test/CodeGen/debug-prefix-map.c index d6032a658c2..abebc9a1510 100644 --- a/clang/test/CodeGen/debug-prefix-map.c +++ b/clang/test/CodeGen/debug-prefix-map.c @@ -2,6 +2,8 @@ // RUN: %clang_cc1 -debug-info-kind=standalone -fdebug-prefix-map=%p=/UNLIKELY_PATH=empty %s -emit-llvm -o - | FileCheck %s -check-prefix CHECK-EVIL // RUN: %clang_cc1 -debug-info-kind=standalone -fdebug-prefix-map=%p=/UNLIKELY_PATH/empty %s -emit-llvm -o - -main-file-name debug-prefix-map.c | FileCheck %s // RUN: %clang_cc1 -debug-info-kind=standalone -fdebug-prefix-map=%p=/UNLIKELY_PATH/empty %s -emit-llvm -o - -fdebug-compilation-dir %p | FileCheck %s -check-prefix CHECK-COMPILATION-DIR +// RUN: %clang -g -fdebug-prefix-map=%p=/UNLIKELY_PATH/empty -S -c %s -emit-llvm -o - | FileCheck %s +// RUN: %clang -g -ffile-prefix-map=%p=/UNLIKELY_PATH/empty -S -c %s -emit-llvm -o - | FileCheck %s #include "Inputs/stdio.h" |

