Recommit "[CodeView] Add option to disable inline line tables."
authorAmy Huang <akhuang@google.com>
Thu, 31 Oct 2019 16:15:53 +0000 (09:15 -0700)
committerAmy Huang <akhuang@google.com>
Mon, 4 Nov 2019 17:15:26 +0000 (09:15 -0800)
commitab76cfdd200d35177df2042a1c0c7e86868d01bc
tree58cd05d4ee64a5839c6492207413b60d1478f4ab
parent2c6fae179e6984c7330ff8a284d7a10ce142eef9
Recommit "[CodeView] Add option to disable inline line tables."

This reverts commit 004ed2b0d1b86d424643ffc88fce20ad8bab6804.
Original commit hash 6d03890384517919a3ba7fe4c35535425f278f89

Summary:
This adds a clang option to disable inline line tables. When it is used,
the inliner uses the call site as the location of the inlined function instead of
marking it as an inline location with the function location.

https://reviews.llvm.org/D67723
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/debug-info-no-inline-line-tables.c [new file with mode: 0644]
llvm/docs/LangRef.rst
llvm/include/llvm/IR/Attributes.td
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/Transforms/Inline/no-inline-line-tables.ll [new file with mode: 0644]