mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Formatting and 80-col.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195122 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -172,8 +172,8 @@ namespace llvm {
|
|||||||
Child->Parent = this;
|
Child->Parent = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// findAttribute - Find a value in the DIE with the attribute given, returns NULL
|
/// findAttribute - Find a value in the DIE with the attribute given,
|
||||||
/// if no such attribute exists.
|
/// returns NULL if no such attribute exists.
|
||||||
DIEValue *findAttribute(uint16_t Attribute);
|
DIEValue *findAttribute(uint16_t Attribute);
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
@ -136,7 +136,8 @@ private:
|
|||||||
StringRef Name);
|
StringRef Name);
|
||||||
|
|
||||||
/// \brief Hashes a reference to a previously referenced type DIE.
|
/// \brief Hashes a reference to a previously referenced type DIE.
|
||||||
void hashRepeatedTypeReference(dwarf::Attribute Attribute, unsigned DieNumber);
|
void hashRepeatedTypeReference(dwarf::Attribute Attribute,
|
||||||
|
unsigned DieNumber);
|
||||||
|
|
||||||
void hashNestedType(const DIE &Die, StringRef Name);
|
void hashNestedType(const DIE &Die, StringRef Name);
|
||||||
|
|
||||||
|
@ -102,8 +102,7 @@ int64_t CompileUnit::getDefaultLowerBound() const {
|
|||||||
static bool isShareableAcrossCUs(DIDescriptor D) {
|
static bool isShareableAcrossCUs(DIDescriptor D) {
|
||||||
// When the MDNode can be part of the type system, the DIE can be
|
// When the MDNode can be part of the type system, the DIE can be
|
||||||
// shared across CUs.
|
// shared across CUs.
|
||||||
return D.isType() ||
|
return D.isType() || (D.isSubprogram() && !DISubprogram(D).isDefinition());
|
||||||
(D.isSubprogram() && !DISubprogram(D).isDefinition());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getDIE - Returns the debug information entry map slot for the
|
/// getDIE - Returns the debug information entry map slot for the
|
||||||
@ -1712,7 +1711,8 @@ void CompileUnit::constructEnumTypeDIE(DIE &Buffer, DICompositeType CTy) {
|
|||||||
StringRef Name = Enum.getName();
|
StringRef Name = Enum.getName();
|
||||||
addString(Enumerator, dwarf::DW_AT_name, Name);
|
addString(Enumerator, dwarf::DW_AT_name, Name);
|
||||||
int64_t Value = Enum.getEnumValue();
|
int64_t Value = Enum.getEnumValue();
|
||||||
addSInt(Enumerator, dwarf::DW_AT_const_value, dwarf::DW_FORM_sdata, Value);
|
addSInt(Enumerator, dwarf::DW_AT_const_value, dwarf::DW_FORM_sdata,
|
||||||
|
Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DIType DTy = resolve(CTy.getTypeDerivedFrom());
|
DIType DTy = resolve(CTy.getTypeDerivedFrom());
|
||||||
|
@ -196,7 +196,8 @@ public:
|
|||||||
|
|
||||||
/// addLocalString - Add a string attribute data and value.
|
/// addLocalString - Add a string attribute data and value.
|
||||||
///
|
///
|
||||||
void addLocalString(DIE *Die, dwarf::Attribute Attribute, const StringRef Str);
|
void addLocalString(DIE *Die, dwarf::Attribute Attribute,
|
||||||
|
const StringRef Str);
|
||||||
|
|
||||||
/// addExpr - Add a Dwarf expression attribute data and value.
|
/// addExpr - Add a Dwarf expression attribute data and value.
|
||||||
///
|
///
|
||||||
@ -221,8 +222,8 @@ public:
|
|||||||
|
|
||||||
/// addDelta - Add a label delta attribute data and value.
|
/// addDelta - Add a label delta attribute data and value.
|
||||||
///
|
///
|
||||||
void addDelta(DIE *Die, dwarf::Attribute Attribute, dwarf::Form Form, const MCSymbol *Hi,
|
void addDelta(DIE *Die, dwarf::Attribute Attribute, dwarf::Form Form,
|
||||||
const MCSymbol *Lo);
|
const MCSymbol *Hi, const MCSymbol *Lo);
|
||||||
|
|
||||||
/// addDIEEntry - Add a DIE attribute data and value.
|
/// addDIEEntry - Add a DIE attribute data and value.
|
||||||
///
|
///
|
||||||
@ -247,8 +248,8 @@ public:
|
|||||||
|
|
||||||
/// addAddress - Add an address attribute to a die based on the location
|
/// addAddress - Add an address attribute to a die based on the location
|
||||||
/// provided.
|
/// provided.
|
||||||
void addAddress(DIE *Die, dwarf::Attribute Attribute, const MachineLocation &Location,
|
void addAddress(DIE *Die, dwarf::Attribute Attribute,
|
||||||
bool Indirect = false);
|
const MachineLocation &Location, bool Indirect = false);
|
||||||
|
|
||||||
/// addConstantValue - Add constant value entry in variable DIE.
|
/// addConstantValue - Add constant value entry in variable DIE.
|
||||||
void addConstantValue(DIE *Die, const MachineOperand &MO, DIType Ty);
|
void addConstantValue(DIE *Die, const MachineOperand &MO, DIType Ty);
|
||||||
@ -273,7 +274,8 @@ public:
|
|||||||
/// (navigating the extra location information encoded in the type) based on
|
/// (navigating the extra location information encoded in the type) based on
|
||||||
/// the starting location. Add the DWARF information to the die.
|
/// the starting location. Add the DWARF information to the die.
|
||||||
///
|
///
|
||||||
void addComplexAddress(const DbgVariable &DV, DIE *Die, dwarf::Attribute Attribute,
|
void addComplexAddress(const DbgVariable &DV, DIE *Die,
|
||||||
|
dwarf::Attribute Attribute,
|
||||||
const MachineLocation &Location);
|
const MachineLocation &Location);
|
||||||
|
|
||||||
// FIXME: Should be reformulated in terms of addComplexAddress.
|
// FIXME: Should be reformulated in terms of addComplexAddress.
|
||||||
@ -283,7 +285,8 @@ public:
|
|||||||
/// starting location. Add the DWARF information to the die. Obsolete,
|
/// starting location. Add the DWARF information to the die. Obsolete,
|
||||||
/// please use addComplexAddress instead.
|
/// please use addComplexAddress instead.
|
||||||
///
|
///
|
||||||
void addBlockByrefAddress(const DbgVariable &DV, DIE *Die, dwarf::Attribute Attribute,
|
void addBlockByrefAddress(const DbgVariable &DV, DIE *Die,
|
||||||
|
dwarf::Attribute Attribute,
|
||||||
const MachineLocation &Location);
|
const MachineLocation &Location);
|
||||||
|
|
||||||
/// addVariableAddress - Add DW_AT_location attribute for a
|
/// addVariableAddress - Add DW_AT_location attribute for a
|
||||||
@ -294,7 +297,8 @@ public:
|
|||||||
/// addType - Add a new type attribute to the specified entity. This takes
|
/// addType - Add a new type attribute to the specified entity. This takes
|
||||||
/// and attribute parameter because DW_AT_friend attributes are also
|
/// and attribute parameter because DW_AT_friend attributes are also
|
||||||
/// type references.
|
/// type references.
|
||||||
void addType(DIE *Entity, DIType Ty, dwarf::Attribute Attribute = dwarf::DW_AT_type);
|
void addType(DIE *Entity, DIType Ty,
|
||||||
|
dwarf::Attribute Attribute = dwarf::DW_AT_type);
|
||||||
|
|
||||||
/// getOrCreateNameSpace - Create a DIE for DINameSpace.
|
/// getOrCreateNameSpace - Create a DIE for DINameSpace.
|
||||||
DIE *getOrCreateNameSpace(DINameSpace NS);
|
DIE *getOrCreateNameSpace(DINameSpace NS);
|
||||||
@ -321,7 +325,8 @@ public:
|
|||||||
|
|
||||||
/// Create a DIE with the given Tag, add the DIE to its parent, and
|
/// Create a DIE with the given Tag, add the DIE to its parent, and
|
||||||
/// call insertDIE if MD is not null.
|
/// call insertDIE if MD is not null.
|
||||||
DIE *createAndAddDIE(unsigned Tag, DIE &Parent, DIDescriptor N = DIDescriptor());
|
DIE *createAndAddDIE(unsigned Tag, DIE &Parent,
|
||||||
|
DIDescriptor N = DIDescriptor());
|
||||||
|
|
||||||
/// Compute the size of a header for this unit, not including the initial
|
/// Compute the size of a header for this unit, not including the initial
|
||||||
/// length field.
|
/// length field.
|
||||||
|
Reference in New Issue
Block a user