mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 05:27:43 +00:00
Few changes to comply with new DebugInfo Metadata representation.
llvm-svn: 84179
This commit is contained in:
parent
4fbe68e7bd
commit
cd427f0fbc
@ -30,10 +30,10 @@ void PIC16DbgInfo::PopulateDebugInfo (DIType Ty, unsigned short &TypeNo,
|
||||
std::string &TagName) {
|
||||
if (Ty.isBasicType())
|
||||
PopulateBasicTypeInfo (Ty, TypeNo);
|
||||
else if (Ty.isDerivedType())
|
||||
PopulateDerivedTypeInfo (Ty, TypeNo, HasAux, Aux, TagName);
|
||||
else if (Ty.isCompositeType())
|
||||
PopulateCompositeTypeInfo (Ty, TypeNo, HasAux, Aux, TagName);
|
||||
else if (Ty.isDerivedType())
|
||||
PopulateDerivedTypeInfo (Ty, TypeNo, HasAux, Aux, TagName);
|
||||
else {
|
||||
TypeNo = PIC16Dbg::T_NULL;
|
||||
HasAux = false;
|
||||
@ -190,7 +190,7 @@ unsigned PIC16DbgInfo::GetTypeDebugNumber(std::string &type) {
|
||||
///
|
||||
short PIC16DbgInfo::getStorageClass(DIGlobalVariable DIGV) {
|
||||
short ClassNo;
|
||||
if (PAN::isLocalName(DIGV.getGlobal()->getName())) {
|
||||
if (PAN::isLocalName(DIGV.getName())) {
|
||||
// Generating C_AUTO here fails due to error in linker. Change it once
|
||||
// linker is fixed.
|
||||
ClassNo = PIC16Dbg::C_STAT;
|
||||
@ -446,7 +446,8 @@ void PIC16DbgInfo::EmitVarDebugInfo(Module &M) {
|
||||
bool HasAux = false;
|
||||
int Aux[PIC16Dbg::AuxSize] = { 0 };
|
||||
std::string TagName = "";
|
||||
std::string VarName = MAI->getGlobalPrefix()+DIGV.getGlobal()->getNameStr();
|
||||
std::string VarName = DIGV.getName();
|
||||
VarName = MAI->getGlobalPrefix() + VarName;
|
||||
PopulateDebugInfo(Ty, TypeNo, HasAux, Aux, TagName);
|
||||
// Emit debug info only if type information is availaible.
|
||||
if (TypeNo != PIC16Dbg::T_NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user