diff options
| author | Bill Wendling <isanbard@gmail.com> | 2009-05-20 23:24:48 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2009-05-20 23:24:48 +0000 |
| commit | bcad77a8d5b157d0f16ba4c903f2dea418df13da (patch) | |
| tree | 5abcee2a0c3fa1d8c52376ed8fd3e384cf072b9d /llvm/lib | |
| parent | 806535f908c6075b8b0f27dc6bd4938368b27965 (diff) | |
| download | bcm5719-llvm-bcad77a8d5b157d0f16ba4c903f2dea418df13da.tar.gz bcm5719-llvm-bcad77a8d5b157d0f16ba4c903f2dea418df13da.zip | |
Rename 'New*' methods to 'Create*' to be consistent. 'NewString' isn't used.
llvm-svn: 72196
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 14 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 19 |
2 files changed, 13 insertions, 20 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 524ce62f2d2..ec4602dbff7 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -275,9 +275,9 @@ void DwarfDebug::AssignAbbrevNumber(DIEAbbrev &Abbrev) { } } -/// NewDIEEntry - Creates a new DIEEntry to be a proxy for a debug information -/// entry. -DIEEntry *DwarfDebug::NewDIEEntry(DIE *Entry) { +/// CreateDIEEntry - Creates a new DIEEntry to be a proxy for a debug +/// information entry. +DIEEntry *DwarfDebug::CreateDIEEntry(DIE *Entry) { DIEEntry *Value; if (Entry) { @@ -545,7 +545,7 @@ void DwarfDebug::AddType(CompileUnit *DW_Unit, DIE *Entity, DIType Ty) { } // Set up proxy. - Slot = NewDIEEntry(); + Slot = CreateDIEEntry(); // Construct type. DIE Buffer(dwarf::DW_TAG_base_type); @@ -925,9 +925,9 @@ CompileUnit &DwarfDebug::FindCompileUnit(DICompileUnit Unit) const { return *I->second; } -/// NewDbgScopeVariable - Create a new scope variable. +/// CreateDbgScopeVariable - Create a new scope variable. /// -DIE *DwarfDebug::NewDbgScopeVariable(DbgVariable *DV, CompileUnit *Unit) { +DIE *DwarfDebug::CreateDbgScopeVariable(DbgVariable *DV, CompileUnit *Unit) { // Get the descriptor. const DIVariable &VD = DV->getVariable(); @@ -1012,7 +1012,7 @@ void DwarfDebug::ConstructDbgScope(DbgScope *ParentScope, // Add variables to scope. SmallVector<DbgVariable *, 8> &Variables = ParentScope->getVariables(); for (unsigned i = 0, N = Variables.size(); i < N; ++i) { - DIE *VariableDie = NewDbgScopeVariable(Variables[i], Unit); + DIE *VariableDie = CreateDbgScopeVariable(Variables[i], Unit); if (VariableDie) ParentDie->AddChild(VariableDie); } diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index a997199bed0..d81ebbf5075 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -230,16 +230,9 @@ class VISIBILITY_HIDDEN DwarfDebug : public Dwarf { /// void AssignAbbrevNumber(DIEAbbrev &Abbrev); - /// NewString - Add a string to the constant pool and returns a label. - /// - DWLabel NewString(const std::string &String) { - unsigned StringID = StringPool.insert(String); - return DWLabel("string", StringID); - } - - /// NewDIEEntry - Creates a new DIEEntry to be a proxy for a debug information - /// entry. - DIEEntry *NewDIEEntry(DIE *Entry = NULL); + /// CreateDIEEntry - Creates a new DIEEntry to be a proxy for a debug + /// information entry. + DIEEntry *CreateDIEEntry(DIE *Entry = NULL); /// SetDIEEntry - Set a DIEEntry once the debug information entry is defined. /// @@ -282,7 +275,7 @@ class VISIBILITY_HIDDEN DwarfDebug : public Dwarf { /// AddDIEEntry - Add a DIE attribute data and value. /// void AddDIEEntry(DIE *Die, unsigned Attribute, unsigned Form, DIE *Entry) { - Die->AddValue(Attribute, Form, NewDIEEntry(Entry)); + Die->AddValue(Attribute, Form, CreateDIEEntry(Entry)); } /// AddBlock - Add block data. @@ -346,9 +339,9 @@ class VISIBILITY_HIDDEN DwarfDebug : public Dwarf { /// CompileUnit &FindCompileUnit(DICompileUnit Unit) const; - /// NewDbgScopeVariable - Create a new scope variable. + /// CreateDbgScopeVariable - Create a new scope variable. /// - DIE *NewDbgScopeVariable(DbgVariable *DV, CompileUnit *Unit); + DIE *CreateDbgScopeVariable(DbgVariable *DV, CompileUnit *Unit); /// getOrCreateScope - Returns the scope associated with the given descriptor. /// |

