[cfe-commits] r166981 - in /cfe/trunk: include/clang/Frontend/ASTUnit.h lib/Frontend/ASTUnit.cpp

Rafael Espindola rafael.espindola at gmail.com
Mon Oct 29 16:26:40 PDT 2012


Author: rafael
Date: Mon Oct 29 18:26:40 2012
New Revision: 166981

URL: http://llvm.org/viewvc/llvm-project?rev=166981&view=rev
Log:
Move getOriginalSourceFileName inline. Patch by Laszlo Nagy.

Modified:
    cfe/trunk/include/clang/Frontend/ASTUnit.h
    cfe/trunk/lib/Frontend/ASTUnit.cpp

Modified: cfe/trunk/include/clang/Frontend/ASTUnit.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/ASTUnit.h?rev=166981&r1=166980&r2=166981&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/ASTUnit.h (original)
+++ cfe/trunk/include/clang/Frontend/ASTUnit.h Mon Oct 29 18:26:40 2012
@@ -467,7 +467,9 @@
 
   const FileSystemOptions &getFileSystemOpts() const { return FileSystemOpts; }
 
-  const std::string &getOriginalSourceFileName();
+  const std::string &getOriginalSourceFileName() {
+    return OriginalSourceFile;
+  }
 
   ASTDeserializationListener *getDeserializationListener();
 

Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=166981&r1=166980&r2=166981&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Mon Oct 29 18:26:40 2012
@@ -632,10 +632,6 @@
   StoredDiags.push_back(StoredDiagnostic(Level, Info));
 }
 
-const std::string &ASTUnit::getOriginalSourceFileName() {
-  return OriginalSourceFile;
-}
-
 ASTDeserializationListener *ASTUnit::getDeserializationListener() {
   if (WriterData)
     return &WriterData->Writer;





More information about the cfe-commits mailing list