MCPcopy Create free account
hub / github.com/GoSSIP-SJTU/Armariris / EmitDeclMetadata

Method EmitDeclMetadata

tools/clang/lib/CodeGen/CodeGenModule.cpp:4091–4101  ·  view source on GitHub ↗

Emits metadata nodes associating all the global values in the current module with the Decls they came from. This is useful for projects using IR gen as a subroutine. Since there's currently no way to associate an MDNode directly with an llvm::GlobalValue, we create a global named metadata with the name 'clang.global.decl.ptrs'.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 9

EmitGlobalDeclMetadataFunction · 0.85
GetPointerConstantFunction · 0.85
getNamedValueMethod · 0.80
setMetadataMethod · 0.80
GlobalDeclClass · 0.70
getFunction · 0.50
emptyMethod · 0.45
getMDKindIDMethod · 0.45
getPointerMethod · 0.45

Tested by

no test coverage detected