aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r--lib/Lex/Preprocessor.cpp11
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.