Whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168398 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2012-11-21 00:03:28 +00:00
parent a631ea96e6
commit c82fbf4cb1

View File

@ -83,22 +83,22 @@ typedef struct DotDebugLocEntry {
const ConstantFP *CFP; const ConstantFP *CFP;
const ConstantInt *CIP; const ConstantInt *CIP;
} Constants; } Constants;
DotDebugLocEntry() DotDebugLocEntry()
: Begin(0), End(0), Variable(0), Merged(false), : Begin(0), End(0), Variable(0), Merged(false),
Constant(false) { Constants.Int = 0;} Constant(false) { Constants.Int = 0;}
DotDebugLocEntry(const MCSymbol *B, const MCSymbol *E, MachineLocation &L, DotDebugLocEntry(const MCSymbol *B, const MCSymbol *E, MachineLocation &L,
const MDNode *V) const MDNode *V)
: Begin(B), End(E), Loc(L), Variable(V), Merged(false), : Begin(B), End(E), Loc(L), Variable(V), Merged(false),
Constant(false) { Constants.Int = 0; EntryKind = E_Location; } Constant(false) { Constants.Int = 0; EntryKind = E_Location; }
DotDebugLocEntry(const MCSymbol *B, const MCSymbol *E, int64_t i) DotDebugLocEntry(const MCSymbol *B, const MCSymbol *E, int64_t i)
: Begin(B), End(E), Variable(0), Merged(false), : Begin(B), End(E), Variable(0), Merged(false),
Constant(true) { Constants.Int = i; EntryKind = E_Integer; } Constant(true) { Constants.Int = i; EntryKind = E_Integer; }
DotDebugLocEntry(const MCSymbol *B, const MCSymbol *E, const ConstantFP *FPtr) DotDebugLocEntry(const MCSymbol *B, const MCSymbol *E, const ConstantFP *FPtr)
: Begin(B), End(E), Variable(0), Merged(false), : Begin(B), End(E), Variable(0), Merged(false),
Constant(true) { Constants.CFP = FPtr; EntryKind = E_ConstantFP; } Constant(true) { Constants.CFP = FPtr; EntryKind = E_ConstantFP; }
DotDebugLocEntry(const MCSymbol *B, const MCSymbol *E, DotDebugLocEntry(const MCSymbol *B, const MCSymbol *E,
const ConstantInt *IPtr) const ConstantInt *IPtr)
: Begin(B), End(E), Variable(0), Merged(false), : Begin(B), End(E), Variable(0), Merged(false),
Constant(true) { Constants.CIP = IPtr; EntryKind = E_ConstantInt; } Constant(true) { Constants.CIP = IPtr; EntryKind = E_ConstantInt; }
/// Empty entries are also used as a trigger to emit temp label. Such /// Empty entries are also used as a trigger to emit temp label. Such
@ -132,7 +132,7 @@ class DbgVariable {
int FrameIndex; int FrameIndex;
public: public:
// AbsVar may be NULL. // AbsVar may be NULL.
DbgVariable(DIVariable V, DbgVariable *AV) DbgVariable(DIVariable V, DbgVariable *AV)
: Var(V), TheDIE(0), DotDebugLocOffset(~0U), AbsVar(AV), MInsn(0), : Var(V), TheDIE(0), DotDebugLocOffset(~0U), AbsVar(AV), MInsn(0),
FrameIndex(~0) {} FrameIndex(~0) {}
@ -148,11 +148,11 @@ public:
void setMInsn(const MachineInstr *M) { MInsn = M; } void setMInsn(const MachineInstr *M) { MInsn = M; }
int getFrameIndex() const { return FrameIndex; } int getFrameIndex() const { return FrameIndex; }
void setFrameIndex(int FI) { FrameIndex = FI; } void setFrameIndex(int FI) { FrameIndex = FI; }
// Translate tag to proper Dwarf tag. // Translate tag to proper Dwarf tag.
unsigned getTag() const { unsigned getTag() const {
if (Var.getTag() == dwarf::DW_TAG_arg_variable) if (Var.getTag() == dwarf::DW_TAG_arg_variable)
return dwarf::DW_TAG_formal_parameter; return dwarf::DW_TAG_formal_parameter;
return dwarf::DW_TAG_variable; return dwarf::DW_TAG_variable;
} }
/// isArtificial - Return true if DbgVariable is artificial. /// isArtificial - Return true if DbgVariable is artificial.
@ -171,7 +171,7 @@ public:
return true; return true;
return false; return false;
} }
bool variableHasComplexAddress() const { bool variableHasComplexAddress() const {
assert(Var.Verify() && "Invalid complex DbgVariable!"); assert(Var.Verify() && "Invalid complex DbgVariable!");
return Var.hasComplexAddress(); return Var.hasComplexAddress();
@ -180,7 +180,7 @@ public:
assert(Var.Verify() && "Invalid complex DbgVariable!"); assert(Var.Verify() && "Invalid complex DbgVariable!");
return Var.isBlockByrefVariable(); return Var.isBlockByrefVariable();
} }
unsigned getNumAddrElements() const { unsigned getNumAddrElements() const {
assert(Var.Verify() && "Invalid complex DbgVariable!"); assert(Var.Verify() && "Invalid complex DbgVariable!");
return Var.getNumAddrElements(); return Var.getNumAddrElements();
} }
@ -228,7 +228,7 @@ class DwarfDebug {
/// references. /// references.
StringMap<std::pair<MCSymbol*, unsigned>, BumpPtrAllocator&> StringPool; StringMap<std::pair<MCSymbol*, unsigned>, BumpPtrAllocator&> StringPool;
unsigned NextStringPoolNumber; unsigned NextStringPoolNumber;
/// SectionMap - Provides a unique id per text section. /// SectionMap - Provides a unique id per text section.
/// ///
SetVector<const MCSection*> SectionMap; SetVector<const MCSection*> SectionMap;
@ -264,7 +264,7 @@ class DwarfDebug {
// are processed to create DIEs. // are processed to create DIEs.
SmallPtrSet<const MDNode *, 16> ProcessedSPNodes; SmallPtrSet<const MDNode *, 16> ProcessedSPNodes;
/// LabelsBeforeInsn - Maps instruction with label emitted before /// LabelsBeforeInsn - Maps instruction with label emitted before
/// instruction. /// instruction.
DenseMap<const MachineInstr *, MCSymbol *> LabelsBeforeInsn; DenseMap<const MachineInstr *, MCSymbol *> LabelsBeforeInsn;
@ -331,13 +331,13 @@ private:
/// findAbstractVariable - Find abstract variable associated with Var. /// findAbstractVariable - Find abstract variable associated with Var.
DbgVariable *findAbstractVariable(DIVariable &Var, DebugLoc Loc); DbgVariable *findAbstractVariable(DIVariable &Var, DebugLoc Loc);
/// updateSubprogramScopeDIE - Find DIE for the given subprogram and /// updateSubprogramScopeDIE - Find DIE for the given subprogram and
/// attach appropriate DW_AT_low_pc and DW_AT_high_pc attributes. /// attach appropriate DW_AT_low_pc and DW_AT_high_pc attributes.
/// If there are global variables in this scope then create and insert /// If there are global variables in this scope then create and insert
/// DIEs for these variables. /// DIEs for these variables.
DIE *updateSubprogramScopeDIE(CompileUnit *SPCU, const MDNode *SPNode); DIE *updateSubprogramScopeDIE(CompileUnit *SPCU, const MDNode *SPNode);
/// constructLexicalScope - Construct new DW_TAG_lexical_block /// constructLexicalScope - Construct new DW_TAG_lexical_block
/// for this scope and attach DW_AT_low_pc/DW_AT_high_pc labels. /// for this scope and attach DW_AT_low_pc/DW_AT_high_pc labels.
DIE *constructLexicalScopeDIE(CompileUnit *TheCU, LexicalScope *Scope); DIE *constructLexicalScopeDIE(CompileUnit *TheCU, LexicalScope *Scope);
@ -382,7 +382,7 @@ private:
/// emitAccelNames - Emit visible names into a hashed accelerator table /// emitAccelNames - Emit visible names into a hashed accelerator table
/// section. /// section.
void emitAccelNames(); void emitAccelNames();
/// emitAccelObjC - Emit objective C classes and categories into a hashed /// emitAccelObjC - Emit objective C classes and categories into a hashed
/// accelerator table section. /// accelerator table section.
void emitAccelObjC(); void emitAccelObjC();
@ -394,7 +394,7 @@ private:
/// emitAccelTypes() - Emit type dies into a hashed accelerator table. /// emitAccelTypes() - Emit type dies into a hashed accelerator table.
/// ///
void emitAccelTypes(); void emitAccelTypes();
/// emitDebugPubTypes - Emit visible types into a debug pubtypes section. /// emitDebugPubTypes - Emit visible types into a debug pubtypes section.
/// ///
void emitDebugPubTypes(); void emitDebugPubTypes();
@ -427,19 +427,19 @@ private:
/// ///
/// Entries (one "entry" for each function that was inlined): /// Entries (one "entry" for each function that was inlined):
/// ///
/// 1. offset into __debug_str section for MIPS linkage name, if exists; /// 1. offset into __debug_str section for MIPS linkage name, if exists;
/// otherwise offset into __debug_str for regular function name. /// otherwise offset into __debug_str for regular function name.
/// 2. offset into __debug_str section for regular function name. /// 2. offset into __debug_str section for regular function name.
/// 3. an unsigned LEB128 number indicating the number of distinct inlining /// 3. an unsigned LEB128 number indicating the number of distinct inlining
/// instances for the function. /// instances for the function.
/// ///
/// The rest of the entry consists of a {die_offset, low_pc} pair for each /// The rest of the entry consists of a {die_offset, low_pc} pair for each
/// inlined instance; the die_offset points to the inlined_subroutine die in /// inlined instance; the die_offset points to the inlined_subroutine die in
/// the __debug_info section, and the low_pc is the starting address for the /// the __debug_info section, and the low_pc is the starting address for the
/// inlining instance. /// inlining instance.
void emitDebugInlineInfo(); void emitDebugInlineInfo();
/// constructCompileUnit - Create new CompileUnit for the given /// constructCompileUnit - Create new CompileUnit for the given
/// metadata node with tag DW_TAG_compile_unit. /// metadata node with tag DW_TAG_compile_unit.
CompileUnit *constructCompileUnit(const MDNode *N); CompileUnit *constructCompileUnit(const MDNode *N);
@ -451,7 +451,7 @@ private:
/// the source line list. /// the source line list.
void recordSourceLine(unsigned Line, unsigned Col, const MDNode *Scope, void recordSourceLine(unsigned Line, unsigned Col, const MDNode *Scope,
unsigned Flags); unsigned Flags);
/// identifyScopeMarkers() - Indentify instructions that are marking the /// identifyScopeMarkers() - Indentify instructions that are marking the
/// beginning of or ending of a scope. /// beginning of or ending of a scope.
void identifyScopeMarkers(); void identifyScopeMarkers();
@ -464,7 +464,7 @@ private:
/// collectVariableInfo - Populate LexicalScope entries with variables' info. /// collectVariableInfo - Populate LexicalScope entries with variables' info.
void collectVariableInfo(const MachineFunction *, void collectVariableInfo(const MachineFunction *,
SmallPtrSet<const MDNode *, 16> &ProcessedVars); SmallPtrSet<const MDNode *, 16> &ProcessedVars);
/// collectVariableInfoFromMMITable - Collect variable information from /// collectVariableInfoFromMMITable - Collect variable information from
/// side table maintained by MMI. /// side table maintained by MMI.
void collectVariableInfoFromMMITable(const MachineFunction * MF, void collectVariableInfoFromMMITable(const MachineFunction * MF,