mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Eliminate some uses of DOUT, cerr, and getNameStart().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77145 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -490,11 +490,12 @@ bool LinuxAsmPrinter::doInitialization(Module &M) {
|
||||
|
||||
/// PrintUnmangledNameSafely - Print out the printable characters in the name.
|
||||
/// Don't print things like \\n or \\0.
|
||||
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;
|
||||
static void PrintUnmangledNameSafely(const Value *V,
|
||||
formatted_raw_ostream &OS) {
|
||||
for (StringRef::iterator it = V->getName().begin(),
|
||||
ie = V->getName().end(); it != ie; ++it)
|
||||
if (isprint(*it))
|
||||
OS << *it;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user