mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Add namespaces to the list of items that we expose via pubnames.
llvm-svn: 191257
This commit is contained in:
parent
3da065911a
commit
de8027b643
@ -1258,6 +1258,7 @@ DIE *CompileUnit::getOrCreateNameSpace(DINameSpace NS) {
|
||||
if (!NS.getName().empty()) {
|
||||
addString(NDie, dwarf::DW_AT_name, NS.getName());
|
||||
addAccelNamespace(NS.getName(), NDie);
|
||||
addGlobalName(NS.getName(), NDie);
|
||||
} else
|
||||
addAccelNamespace("(anonymous namespace)", NDie);
|
||||
addSourceLine(NDie, NS);
|
||||
|
@ -70,6 +70,7 @@
|
||||
; CHECK-NEXT: Offset in .debug_info: 0
|
||||
; CHECK-NEXT: Size: 319
|
||||
; CHECK-NEXT: Offset Linkage Kind Name
|
||||
; CHECK-DAG: 0x00000091 EXTERNAL TYPE "ns"
|
||||
; CHECK-DAG: 0x00000098 EXTERNAL VARIABLE "global_namespace_variable"
|
||||
; CHECK-DAG: 0x000000a7 EXTERNAL FUNCTION "global_namespace_function"
|
||||
; CHECK-DAG: 0x000000ea STATIC FUNCTION "static_member_function"
|
||||
|
Loading…
Reference in New Issue
Block a user