reland "[DebugInfo] Support to emit debugInfo for extern variables"
authorYonghong Song <yhs@fb.com>
Fri, 22 Nov 2019 16:45:37 +0000 (08:45 -0800)
committerYonghong Song <yhs@fb.com>
Mon, 23 Dec 2019 02:28:50 +0000 (18:28 -0800)
commite3d8ee35e4adca664a9149536e0f0b3b0ceaeaeb
treeded82c55a7ed0ed13f581caa8742bd25337832f9
parentfb53396c49493e3dfd51bb75ca822bd9896210f6
reland "[DebugInfo] Support to emit debugInfo for extern variables"

Commit d77ae1552fc21a9f3877f3ed7e13d631f517c825
("[DebugInfo] Support to emit debugInfo for extern variables")
added deebugInfo for extern variables for BPF target.
The commit is reverted by 891e25b02d760d0de18c7d46947913b3166047e7
as the committed tests using %clang instead of %clang_cc1 causing
test failed in certain scenarios as reported by Reid Kleckner.

This patch fixed the tests by using %clang_cc1.

Differential Revision: https://reviews.llvm.org/D71818
20 files changed:
clang/include/clang/AST/ASTConsumer.h
clang/include/clang/Basic/TargetInfo.h
clang/include/clang/Sema/Sema.h
clang/lib/Basic/Targets/BPF.h
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h
clang/lib/CodeGen/CodeGenAction.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenModule.h
clang/lib/CodeGen/ModuleBuilder.cpp
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaDecl.cpp
clang/test/CodeGen/debug-info-extern-basic.c [new file with mode: 0644]
clang/test/CodeGen/debug-info-extern-duplicate.c [new file with mode: 0644]
clang/test/CodeGen/debug-info-extern-multi.c [new file with mode: 0644]
clang/test/CodeGen/debug-info-extern-unused.c [new file with mode: 0644]
llvm/include/llvm/IR/DIBuilder.h
llvm/lib/IR/DIBuilder.cpp
llvm/lib/IR/DebugInfo.cpp
llvm/unittests/Transforms/Utils/CloningTest.cpp