RewriteModernObjC.cpp: Use Lexer::Stringify() on the file name of #line directive...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 6 Nov 2012 22:45:31 +0000 (22:45 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 6 Nov 2012 22:45:31 +0000 (22:45 +0000)
llvm-svn: 167497

clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp

index 005020d..76fe5ef 100644 (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";