PPCaching.cpp (198092) | PPCaching.cpp (199482) |
---|---|
1//===--- PPCaching.cpp - Handle caching lexed tokens ----------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 95 unchanged lines hidden (view full) --- 104 // Replace the cached tokens with the single annotation token. 105 if (i < CachedLexPos) 106 CachedTokens.erase(AnnotBegin + 1, CachedTokens.begin() + CachedLexPos); 107 *AnnotBegin = Tok; 108 CachedLexPos = i; 109 return; 110 } 111 } | 1//===--- PPCaching.cpp - Handle caching lexed tokens ----------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 95 unchanged lines hidden (view full) --- 104 // Replace the cached tokens with the single annotation token. 105 if (i < CachedLexPos) 106 CachedTokens.erase(AnnotBegin + 1, CachedTokens.begin() + CachedLexPos); 107 *AnnotBegin = Tok; 108 CachedLexPos = i; 109 return; 110 } 111 } |
112 113 assert(0&&"Didn't find the first token represented by the annotation token!"); | |
114} | 112} |