diff options
author | Reid Kleckner <rnk@google.com> | 2020-05-18 12:07:31 -0700 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2020-05-18 17:31:00 -0700 |
commit | 47cc6db928d063d96e11e70c196bd5601b2bdd06 (patch) | |
tree | d435ca439cf69d50ea5e4d07e2e5b2a44873755a /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h | |
parent | e3aa4cd9dbcee6441f51102e3958c35321698c67 (diff) | |
download | llvm-47cc6db928d063d96e11e70c196bd5601b2bdd06.zip llvm-47cc6db928d063d96e11e70c196bd5601b2bdd06.tar.gz llvm-47cc6db928d063d96e11e70c196bd5601b2bdd06.tar.bz2 |
Re-land [Debug][CodeView] Emit fully qualified names for globals
This reverts commit 525a591f0f48b9d54018bf5245f2abee09c9c1c8.
Fixed an issue with pointers to members based on typedefs. In this case,
LLVM would emit a second UDT. I fixed it by not passing the class type
to getTypeIndex when the base type is not a function type. lowerType
only uses the class type for direct function types. This suggests if we
have a PMF with a function typedef, there may be an issue, but that can
be solved separately.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h index f690376..82f0293 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h @@ -310,8 +310,8 @@ class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase { void emitDebugInfoForRetainedTypes(); - void - emitDebugInfoForUDTs(ArrayRef<std::pair<std::string, const DIType *>> UDTs); + void emitDebugInfoForUDTs( + const std::vector<std::pair<std::string, const DIType *>> &UDTs); void emitDebugInfoForGlobals(); void emitGlobalVariableList(ArrayRef<CVGlobalVariable> Globals); |