mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 22:24:28 +00:00
DebugInfo: Move type units into the debug_types section with appropriate comdat grouping and type unit headers
This commit does not complete the type units feature - there are issues around fission support (skeletal type units, pubtypes/pubnames) and hashing of some types including those containing references to types in other type units. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197073 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/MC/MCSection.h"
|
||||
#include "llvm/MC/MCSymbol.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/ELF.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
@ -60,8 +61,13 @@ public:
|
||||
|
||||
StringRef getSectionName() const { return SectionName; }
|
||||
virtual std::string getLabelBeginName() const {
|
||||
return SectionName.str() + "_begin"; }
|
||||
if (Group)
|
||||
return (SectionName.str() + '_' + Group->getName() + "_begin").str();
|
||||
return SectionName.str() + "_begin";
|
||||
}
|
||||
virtual std::string getLabelEndName() const {
|
||||
if (Group)
|
||||
return (SectionName.str() + '_' + Group->getName() + "_end").str();
|
||||
return SectionName.str() + "_end";
|
||||
}
|
||||
unsigned getType() const { return Type; }
|
||||
|
Reference in New Issue
Block a user