RewriteModernObjC.cpp: Use Lexer::Stringify() on the file name of #line directive to escape Win32 path separator '\\'.

llvm-svn: 167497
This commit is contained in:
NAKAMURA Takumi 2012-11-06 22:45:31 +00:00
parent abed749203
commit b46a05cdf9
1 changed files with 1 additions and 1 deletions

View File

@ -3085,7 +3085,7 @@ void RewriteModernObjC::RewriteLineDirective(const Decl *D) {
PresumedLoc PLoc = SM->getPresumedLoc(Location);
LineString += utostr(PLoc.getLine());
LineString += " \"";
LineString += PLoc.getFilename();
LineString += Lexer::Stringify(PLoc.getFilename());
if (isa<ObjCMethodDecl>(D))
LineString += "\"";
else LineString += "\"\n";