diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-10 01:35:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-10 01:35:12 +0000 |
commit | a139481e62fdb209d9d87a54a5733f989d2e8d51 (patch) | |
tree | 3c7c8565e1353c2957301bb49f78319b566fc159 /include/clang/Lex/Preprocessor.h | |
parent | 92fe5204370f3e61cdf3c72a4a2a0460366fb613 (diff) |
stringref'ize a bunch of filename handling logic. Much
nicer than passing around two const char*'s.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 5669a63207..fc2671f481 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -691,13 +691,12 @@ public: /// caller is expected to provide a buffer that is large enough to hold the /// spelling of the filename, but is also expected to handle the case when /// this method decides to use a different buffer. - bool GetIncludeFilenameSpelling(SourceLocation Loc, - const char *&BufStart, const char *&BufEnd); + bool GetIncludeFilenameSpelling(SourceLocation Loc,llvm::StringRef &Filename); /// LookupFile - Given a "foo" or <foo> reference, look up the indicated file, /// return null on failure. isAngled indicates whether the file reference is /// for system #include's or not (i.e. using <> instead of ""). - const FileEntry *LookupFile(const char *FilenameStart,const char *FilenameEnd, + const FileEntry *LookupFile(llvm::StringRef Filename, SourceLocation FilenameTokLoc, bool isAngled, const DirectoryLookup *FromDir, const DirectoryLookup *&CurDir); |