[cfe-commits] r38623 - /cfe/cfe/trunk/Driver/clang.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:23:18 PDT 2007


Author: sabre
Date: Wed Jul 11 11:23:18 2007
New Revision: 38623

URL: http://llvm.org/viewvc/llvm-project?rev=38623&view=rev
Log:
Correctly stringify emitted #line directives in -E mode.

Modified:
    cfe/cfe/trunk/Driver/clang.cpp

Modified: cfe/cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Driver/clang.cpp?rev=38623&r1=38622&r2=38623&view=diff

==============================================================================
--- cfe/cfe/trunk/Driver/clang.cpp (original)
+++ cfe/cfe/trunk/Driver/clang.cpp Wed Jul 11 11:23:18 2007
@@ -644,8 +644,7 @@
   }
   
   EModeCurLine = SourceMgr.getLineNumber(Loc);
-  // FIXME: escape filename right.
-  EModeCurFilename = '"' + SourceMgr.getSourceName(Loc) + '"';
+  EModeCurFilename = Lexer::Stringify(SourceMgr.getSourceName(Loc));
   EmodeFileType = FileType;
   
   if (EmodeEmittedTokensOnThisLine) {





More information about the cfe-commits mailing list