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:
parent
abed749203
commit
b46a05cdf9
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue