[all-commits] [llvm/llvm-project] 6c92cd: Initial implementation of -fmacro-prefix-map and -...

dankm via All-commits all-commits at lists.llvm.org
Tue Nov 26 15:18:02 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c92cdff72251a7d13ab3958b04fba72dfcaebb1
      https://github.com/llvm/llvm-project/commit/6c92cdff72251a7d13ab3958b04fba72dfcaebb1
  Author: Dan McGregor <dan.mcgregor at usask.ca>
  Date:   2019-11-26 (Tue, 26 Nov 2019)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Lex/PreprocessorOptions.h
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/lib/CodeGen/CGDebugInfo.h
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/ToolChains/FreeBSD.cpp
    M clang/lib/Driver/ToolChains/Gnu.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/lib/Lex/PPMacroExpansion.cpp
    M clang/test/CodeGen/debug-prefix-map.c
    M clang/test/Driver/debug-prefix-map.S
    M clang/test/Driver/debug-prefix-map.c
    A clang/test/Preprocessor/file_test.c
    A clang/test/Preprocessor/file_test.h
    M llvm/include/llvm/Support/Path.h
    M llvm/lib/Support/Path.cpp
    M llvm/unittests/Support/Path.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list