aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/DebugInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-07 16:17:22 +0000
committerDan Gohman <gohman@apple.com>2010-05-07 16:17:22 +0000
commitc014d0963e50deb5cfdc49e3abb4ba21db099a2e (patch)
tree282f5e31c2363fb1c540e43621205ec63de8809f /lib/Analysis/DebugInfo.cpp
parent28a193ed8b4b37593afb76f9130eacf393ea9383 (diff)
downloadexternal_llvm-c014d0963e50deb5cfdc49e3abb4ba21db099a2e.zip
external_llvm-c014d0963e50deb5cfdc49e3abb4ba21db099a2e.tar.gz
external_llvm-c014d0963e50deb5cfdc49e3abb4ba21db099a2e.tar.bz2
Fix the new print functions to call print instead of dump.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r--lib/Analysis/DebugInfo.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index e423354..aa562cf 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/lib/Analysis/DebugInfo.cpp
@@ -501,7 +501,7 @@ void DIType::print(raw_ostream &OS) const {
OS << " [" << dwarf::TagString(Tag) << "] ";
// TODO : Print context
- getCompileUnit().dump();
+ getCompileUnit().print(OS);
OS << " ["
<< getLineNumber() << ", "
<< getSizeInBits() << ", "
@@ -518,11 +518,11 @@ void DIType::print(raw_ostream &OS) const {
OS << " [fwd] ";
if (isBasicType())
- DIBasicType(DbgNode).dump();
+ DIBasicType(DbgNode).print(OS);
else if (isDerivedType())
- DIDerivedType(DbgNode).dump();
+ DIDerivedType(DbgNode).print(OS);
else if (isCompositeType())
- DICompositeType(DbgNode).dump();
+ DICompositeType(DbgNode).print(OS);
else {
OS << "Invalid DIType\n";
return;
@@ -538,7 +538,7 @@ void DIBasicType::print(raw_ostream &OS) const {
/// print - Print derived type.
void DIDerivedType::print(raw_ostream &OS) const {
- OS << "\n\t Derived From: "; getTypeDerivedFrom().dump();
+ OS << "\n\t Derived From: "; getTypeDerivedFrom().print(OS);
}
/// print - Print composite type.
@@ -557,7 +557,7 @@ void DIGlobal::print(raw_ostream &OS) const {
OS << " [" << dwarf::TagString(Tag) << "] ";
// TODO : Print context
- getCompileUnit().dump();
+ getCompileUnit().print(OS);
OS << " [" << getLineNumber() << "] ";
if (isLocalToUnit())
@@ -567,7 +567,7 @@ void DIGlobal::print(raw_ostream &OS) const {
OS << " [def] ";
if (isGlobalVariable())
- DIGlobalVariable(DbgNode).dump();
+ DIGlobalVariable(DbgNode).print(OS);
OS << "\n";
}
@@ -582,7 +582,7 @@ void DISubprogram::print(raw_ostream &OS) const {
OS << " [" << dwarf::TagString(Tag) << "] ";
// TODO : Print context
- getCompileUnit().dump();
+ getCompileUnit().print(OS);
OS << " [" << getLineNumber() << "] ";
if (isLocalToUnit())
@@ -597,7 +597,7 @@ void DISubprogram::print(raw_ostream &OS) const {
/// print - Print global variable.
void DIGlobalVariable::print(raw_ostream &OS) const {
OS << " [";
- getGlobal()->dump();
+ getGlobal()->print(OS);
OS << "] ";
}
@@ -607,9 +607,9 @@ void DIVariable::print(raw_ostream &OS) const {
if (!Res.empty())
OS << " [" << Res << "] ";
- getCompileUnit().dump();
+ getCompileUnit().print(OS);
OS << " [" << getLineNumber() << "] ";
- getType().dump();
+ getType().print(OS);
OS << "\n";
// FIXME: Dump complex addresses