diff options
author | Yonghong Song <yhs@fb.com> | 2019-11-22 08:45:37 -0800 |
---|---|---|
committer | Yonghong Song <yhs@fb.com> | 2019-12-22 18:28:50 -0800 |
commit | e3d8ee35e4adca664a9149536e0f0b3b0ceaeaeb (patch) | |
tree | ded82c55a7ed0ed13f581caa8742bd25337832f9 /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | fb53396c49493e3dfd51bb75ca822bd9896210f6 (diff) | |
download | llvm-e3d8ee35e4adca664a9149536e0f0b3b0ceaeaeb.zip llvm-e3d8ee35e4adca664a9149536e0f0b3b0ceaeaeb.tar.gz llvm-e3d8ee35e4adca664a9149536e0f0b3b0ceaeaeb.tar.bz2 |
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
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
-rw-r--r-- | clang/lib/CodeGen/ModuleBuilder.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/ModuleBuilder.cpp b/clang/lib/CodeGen/ModuleBuilder.cpp index 4154f6eb..01093cf 100644 --- a/clang/lib/CodeGen/ModuleBuilder.cpp +++ b/clang/lib/CodeGen/ModuleBuilder.cpp @@ -290,6 +290,10 @@ namespace { Builder->EmitTentativeDefinition(D); } + void CompleteExternalDeclaration(VarDecl *D) override { + Builder->EmitExternalDeclaration(D); + } + void HandleVTable(CXXRecordDecl *RD) override { if (Diags.hasErrorOccurred()) return; |