projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reapply [FastISel][AArch64] Make use of the zero register when possible (r215591).
[oota-llvm.git]
/
lib
/
AsmParser
/
LLLexer.cpp
diff --git
a/lib/AsmParser/LLLexer.cpp
b/lib/AsmParser/LLLexer.cpp
index 962298fcd54215921912539f561a2966f4a70db6..cb4a9557d43793abe5af079d03a8e863170432d1 100644
(file)
--- a/
lib/AsmParser/LLLexer.cpp
+++ b/
lib/AsmParser/LLLexer.cpp
@@
-161,14
+161,10
@@
static const char *isLabelTail(const char *CurPtr) {
// Lexer definition.
//===----------------------------------------------------------------------===//
// Lexer definition.
//===----------------------------------------------------------------------===//
-LLLexer::LLLexer(
MemoryBuffer *
StartBuf, SourceMgr &sm, SMDiagnostic &Err,
+LLLexer::LLLexer(
StringRef
StartBuf, SourceMgr &sm, SMDiagnostic &Err,
LLVMContext &C)
: CurBuf(StartBuf), ErrorInfo(Err), SM(sm), Context(C), APFloatVal(0.0) {
LLVMContext &C)
: CurBuf(StartBuf), ErrorInfo(Err), SM(sm), Context(C), APFloatVal(0.0) {
- CurPtr = CurBuf->getBufferStart();
-}
-
-std::string LLLexer::getFilename() const {
- return CurBuf->getBufferIdentifier();
+ CurPtr = CurBuf.begin();
}
int LLLexer::getNextChar() {
}
int LLLexer::getNextChar() {
@@
-178,7
+174,7
@@
int LLLexer::getNextChar() {
case 0:
// A nul character in the stream is either the end of the current buffer or
// a random nul in the file. Disambiguate that here.
case 0:
// A nul character in the stream is either the end of the current buffer or
// a random nul in the file. Disambiguate that here.
- if (CurPtr-1 != CurBuf
->getBufferE
nd())
+ if (CurPtr-1 != CurBuf
.e
nd())
return 0; // Just whitespace.
// Otherwise, return end of file.
return 0; // Just whitespace.
// Otherwise, return end of file.
@@
-516,8
+512,6
@@
lltok::Kind LLLexer::LexIdentifier() {
KEYWORD(private);
KEYWORD(internal);
KEYWORD(private);
KEYWORD(internal);
- KEYWORD(linker_private); // NOTE: deprecated, for parser compatibility
- KEYWORD(linker_private_weak); // NOTE: deprecated, for parser compatibility
KEYWORD(available_externally);
KEYWORD(linkonce);
KEYWORD(linkonce_odr);
KEYWORD(available_externally);
KEYWORD(linkonce);
KEYWORD(linkonce_odr);