summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/DwarfWriter.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-09-01 12:55:05 +0000
committerJim Laskey <jlaskey@mac.com>2006-09-01 12:55:05 +0000
commit5352d0cc4d38ca89a38aa2fb487ecf5e2c8f1fc2 (patch)
treee0fd209ed3a0fbe4148d54d1dc1995abbe940d32 /llvm/lib/CodeGen/DwarfWriter.cpp
parent4b8b6ae924ed49c2457b20cbc7ac7d4c14f39e7e (diff)
downloadbcm5719-llvm-5352d0cc4d38ca89a38aa2fb487ecf5e2c8f1fc2.tar.gz
bcm5719-llvm-5352d0cc4d38ca89a38aa2fb487ecf5e2c8f1fc2.zip
Corrections.
llvm-svn: 30021
Diffstat (limited to 'llvm/lib/CodeGen/DwarfWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index 5b5be545aad..1505535fbf9 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/DwarfWriter.cpp
@@ -942,7 +942,7 @@ void DIE::AddChild(DIE *Child) {
//===----------------------------------------------------------------------===//
-/// DWContext
+/// DwarfWriter
//===----------------------------------------------------------------------===//
@@ -1103,9 +1103,9 @@ void DwarfWriter::EmitString(const std::string &String) const {
case '\t': O << "\\t"; break;
default:
O << '\\';
- O << char('0' + (C >> 6));
- O << char('0' + (C >> 3));
- O << char('0' + (C >> 0));
+ O << char('0' + ((C >> 6) & 7));
+ O << char('0' + ((C >> 3) & 7));
+ O << char('0' + ((C >> 0) & 7));
break;
}
} else if (C == '\"') {
OpenPOWER on IntegriCloud