diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-26 07:49:05 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-26 07:49:05 +0000 |
commit | 9813b0b02514a765cbc030eb75561a2d8e625cca (patch) | |
tree | ca7923e95812eee136c01028d93940b235d1b61d /llvm/lib/Target/X86 | |
parent | 1db210322aee38cd93a5489996e251072461f1ff (diff) | |
download | bcm5719-llvm-9813b0b02514a765cbc030eb75561a2d8e625cca.tar.gz bcm5719-llvm-9813b0b02514a765cbc030eb75561a2d8e625cca.zip |
Eliminate some uses of DOUT, cerr, and getNameStart().
llvm-svn: 77145
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r-- | llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index 16d8482086a..1260cedfcda 100644 --- a/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -60,12 +60,12 @@ void X86ATTAsmPrinter::PrintPICBaseSymbol() const { /// PrintUnmangledNameSafely - Print out the printable characters in the name. /// Don't print things like \\n or \\0. -static void PrintUnmangledNameSafely(const Value *V, +static void PrintUnmangledNameSafely(const Value *V, formatted_raw_ostream &OS) { - for (const char *Name = V->getNameStart(), *E = Name+V->getNameLen(); - Name != E; ++Name) - if (isprint(*Name)) - OS << *Name; + for (StringRef::iterator it = V->getName().begin(), + ie = V->getName().end(); it != ie; ++it) + if (isprint(*it)) + OS << *it; } static X86MachineFunctionInfo calculateFunctionInfo(const Function *F, |