[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-commits
Subject:    [PATCH] D70696: [DebugInfo] Support to emit debugInfo for extern variables
From:       Sourabh Singh Tomar via Phabricator via cfe-commits <cfe-commits () lists ! llvm ! org>
Date:       2019-11-30 15:16:58
Message-ID: baf84ed06fd601b9bf55c00741504281 () localhost ! localdomain
[Download RAW message or body]

SouraVX added a comment.

In D70696#1764306 <https://reviews.llvm.org/D70696#1764306>, @umesh.kalappa0 wrote:

> @SouraVX  and @yonghong-song
> 
> cat extern.c 
> int global_var = 2;
> 
> compile as an extern.c shared a library ,then final executable a.out doesn't have \
> debugInfo for global_var.


Perfect! Now we have a better use case and motivation that we should generate \
declaration debug entry. for a variable declared as extern.   that will also solves \
@umesh.kalappa0 above case. `a.out` will have debuginfo for `global_var`, since we \
generated it's declaration debuginfo in primary object `main.c`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70696/new/

https://reviews.llvm.org/D70696



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic