PPExpressions.cpp (198893) | PPExpressions.cpp (199482) |
---|---|
1//===--- PPExpressions.cpp - Preprocessor Expression Evaluation -----------===// 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//===----------------------------------------------------------------------===// --- 214 unchanged lines hidden (view full) --- 223 const char *ThisTokBegin = &CharBuffer[0]; 224 unsigned ActualLength = PP.getSpelling(PeekTok, ThisTokBegin); 225 CharLiteralParser Literal(ThisTokBegin, ThisTokBegin+ActualLength, 226 PeekTok.getLocation(), PP); 227 if (Literal.hadError()) 228 return true; // A diagnostic was already emitted. 229 230 // Character literals are always int or wchar_t, expand to intmax_t. | 1//===--- PPExpressions.cpp - Preprocessor Expression Evaluation -----------===// 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//===----------------------------------------------------------------------===// --- 214 unchanged lines hidden (view full) --- 223 const char *ThisTokBegin = &CharBuffer[0]; 224 unsigned ActualLength = PP.getSpelling(PeekTok, ThisTokBegin); 225 CharLiteralParser Literal(ThisTokBegin, ThisTokBegin+ActualLength, 226 PeekTok.getLocation(), PP); 227 if (Literal.hadError()) 228 return true; // A diagnostic was already emitted. 229 230 // Character literals are always int or wchar_t, expand to intmax_t. |
231 TargetInfo &TI = PP.getTargetInfo(); | 231 const TargetInfo &TI = PP.getTargetInfo(); |
232 unsigned NumBits; 233 if (Literal.isMultiChar()) 234 NumBits = TI.getIntWidth(); 235 else if (Literal.isWide()) 236 NumBits = TI.getWCharWidth(); 237 else 238 NumBits = TI.getCharWidth(); 239 --- 488 unchanged lines hidden --- | 232 unsigned NumBits; 233 if (Literal.isMultiChar()) 234 NumBits = TI.getIntWidth(); 235 else if (Literal.isWide()) 236 NumBits = TI.getWCharWidth(); 237 else 238 NumBits = TI.getCharWidth(); 239 --- 488 unchanged lines hidden --- |