From af7d04207c232cd52c097c98f60b9c61c7ae9a60 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Sat, 10 Jan 2009 02:42:49 +0000 Subject: Reduce initial small vector sizes. llvm-svn: 62023 --- llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index db0d6566815..25420473ad6 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -1242,8 +1242,8 @@ private: // Either subprogram or block. unsigned StartLabelID; // Label ID of the beginning of scope. unsigned EndLabelID; // Label ID of the end of scope. - SmallVector Scopes; // Scopes defined in scope. - SmallVector Variables;// Variables declared in scope. + SmallVector Scopes; // Scopes defined in scope. + SmallVector Variables;// Variables declared in scope. public: DbgScope(DbgScope *P, DIDescriptor *D) @@ -1256,8 +1256,8 @@ public: DIDescriptor *getDesc() const { return Desc; } unsigned getStartLabelID() const { return StartLabelID; } unsigned getEndLabelID() const { return EndLabelID; } - SmallVector &getScopes() { return Scopes; } - SmallVector &getVariables() { return Variables; } + SmallVector &getScopes() { return Scopes; } + SmallVector &getVariables() { return Variables; } void setStartLabelID(unsigned S) { StartLabelID = S; } void setEndLabelID(unsigned E) { EndLabelID = E; } @@ -2645,14 +2645,14 @@ private: unsigned ParentStartID, unsigned ParentEndID, DIE *ParentDie, CompileUnit *Unit) { // Add variables to scope. - SmallVector &Variables = ParentScope->getVariables(); + SmallVector &Variables = ParentScope->getVariables(); for (unsigned i = 0, N = Variables.size(); i < N; ++i) { DIE *VariableDie = NewDbgScopeVariable(Variables[i], Unit); if (VariableDie) ParentDie->AddChild(VariableDie); } // Add nested scopes. - SmallVector &Scopes = ParentScope->getScopes(); + SmallVector &Scopes = ParentScope->getScopes(); for (unsigned j = 0, M = Scopes.size(); j < M; ++j) { // Define the Scope debug information entry. DbgScope *Scope = Scopes[j]; -- cgit v1.2.3