Use raw_ostream::write_escaped instead of EscapeString.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2009-10-17 20:43:19 +00:00
parent 522b113a75
commit 3446cf142e
3 changed files with 17 additions and 18 deletions

View File

@ -30,9 +30,8 @@ namespace {
virtual bool runOnFunction(Function &F) {
HelloCounter++;
std::string fname = F.getName();
EscapeString(fname);
errs() << "Hello: " << fname << "\n";
errs() << "Hello: ";
errs().write_escaped(F.getName()) << '\n';
return false;
}
};
@ -49,9 +48,8 @@ namespace {
virtual bool runOnFunction(Function &F) {
HelloCounter++;
std::string fname = F.getName();
EscapeString(fname);
errs() << "Hello: " << fname << "\n";
errs() << "Hello: ";
errs().write_escaped(F.getName()) << '\n';
return false;
}