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

Jordan Rose jordan_rose at apple.com
Mon Oct 29 16:55:56 PDT 2012


Is there any rason why this is not a StringRef?


On Oct 29, 2012, at 16:26 , Rafael Espindola <rafael.espindola at gmail.com> wrote:

> 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;
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list