diff options
author | John McCall <rjmccall@apple.com> | 2011-03-08 07:59:04 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-03-08 07:59:04 +0000 |
commit | 834e3f6c77d9ac03997a3f0c56934edcf406a355 (patch) | |
tree | 9996ca50172c3a9cb33026731c560de98b8f4cc7 /lib/Lex/Preprocessor.cpp | |
parent | 2792fa5115c5de7cbe11d99d23663c569bfb4cae (diff) |
Fix my earlier commit to work with escaped newlines and leave breadcrumbs
in case we want to make a world where we can check intermediate instantiations
for this kind of breadcrumb.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 40227dc5e6..f5cdb015e9 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -278,17 +278,6 @@ void Preprocessor::CodeCompleteNaturalLanguage() { CodeComplete->CodeCompleteNaturalLanguage(); } -llvm::StringRef Preprocessor::getSpelling(SourceLocation loc, - bool *invalid) const { - bool invalidTemp = false; - if (!invalid) invalid = &invalidTemp; - const char *begin = SourceMgr.getCharacterData(loc, invalid); - if (*invalid) return llvm::StringRef(); - - unsigned length = Lexer::MeasureTokenLength(loc, SourceMgr, Features); - return llvm::StringRef(begin, length); -} - /// getSpelling - This method is used to get the spelling of a token into a /// SmallVector. Note that the returned StringRef may not point to the /// supplied buffer if a copy can be avoided. |