- Oct 12, 2008
-
-
Chris Lattner authored
even whitespace, as tokens from the file. This is enabled with L->SetKeepWhitespaceMode(true) on a raw lexer. In this mode, you too can use clang as a really complex version of 'cat' with code like this: Lexer RawLex(SourceLocation::getFileLoc(SM.getMainFileID(), 0), PP.getLangOptions(), File.first, File.second); RawLex.SetKeepWhitespaceMode(true); Token RawTok; RawLex.LexFromRawLexer(RawTok); while (RawTok.isNot(tok::eof)) { std::cout << PP.getSpelling(RawTok); RawLex.LexFromRawLexer(RawTok); } This will emit exactly the input file, with no canonicalization or other translation. Realistic clients actually do something with the tokens of course :) llvm-svn: 57401
-
Owen Anderson authored
data-based ones. Just be conservative when analyzing control-based escapes. llvm-svn: 57400
-
Chris Lattner authored
llvm-svn: 57399
-
Chris Lattner authored
llvm-svn: 57398
-
Chris Lattner authored
ivar. llvm-svn: 57397
-
Chris Lattner authored
llvm-svn: 57396
-
Chris Lattner authored
same we we do an unterminated string or character literal. This makes it so we can guarantee that the lexer never calls into the preprocessor (which would be suicide for a raw lexer). llvm-svn: 57395
-
Chris Lattner authored
llvm-svn: 57394
-
Chris Lattner authored
using LexRawToken, create one and use LexFromRawLexer. This avoids twiddling the RawLexer flag around and simplifies some code (even speeding raw lexing up a tiny bit). This change also improves the token paster to use a Lexer on the stack instead of new/deleting it. llvm-svn: 57393
-
Chris Lattner authored
llvm-svn: 57392
-
Chris Lattner authored
llvm-svn: 57391
-
Chris Lattner authored
llvm-svn: 57390
-
Chris Lattner authored
llvm-svn: 57389
-
Chris Lattner authored
llvm-svn: 57388
-
Chris Lattner authored
a couple other cases for clarity, but shouldn't affect correctness. Patch by Eli Friedman! llvm-svn: 57387
-
Chris Lattner authored
llvm-svn: 57386
-
Chris Lattner authored
parameters instead of raw Constants. This prevents the constants from being selected by the isel pass, fixing PR2735. llvm-svn: 57385
-
Chris Lattner authored
llvm-svn: 57384
-
Chris Lattner authored
llvm-svn: 57383
-
- Oct 11, 2008
-
-
Daniel Dunbar authored
- DbgStopPointInst - Attributes (needs filling in) llvm-svn: 57382
-
Duncan Sands authored
llvm-svn: 57381
-
Anton Korobeynikov authored
llvm-svn: 57380
-
Daniel Dunbar authored
llvm-svn: 57379
-
Anton Korobeynikov authored
llvm-svn: 57378
-
Anton Korobeynikov authored
llvm-svn: 57377
-
Chris Lattner authored
various component owners could look through and update their areas in the known-problems section. llvm-svn: 57376
-
Daniel Dunbar authored
llvm-svn: 57373
-
Chris Lattner authored
llvm-svn: 57371
-
Dale Johannesen authored
the same pattern as roundpd/roundps, the Intel compiler builtins do not: rounds* has an extra operand. Fixes gcc.target/i386/sse4_1-rounds[sd]-[1234].c llvm-svn: 57370
-
Devang Patel authored
This patch fixes PR 2869 llvm-svn: 57369
-
- Oct 10, 2008
-
-
Anton Korobeynikov authored
llvm-svn: 57368
-
Dale Johannesen authored
valid comments in inline assembly. gcc.target/i386/20011009-1.c llvm-svn: 57365
-
Anton Korobeynikov authored
Extend set of return registers on sparc until someone will implement MRV support there. At least, this will allow libgcc compile, however we are not ABI-compatible with stuff compiled with native gcc. llvm-svn: 57364
-
Anton Korobeynikov authored
llvm-svn: 57363
-
Anton Korobeynikov authored
llvm-svn: 57362
-
Anton Korobeynikov authored
llvm-svn: 57361
-
Anton Korobeynikov authored
llvm-svn: 57360
-
Anton Korobeynikov authored
llvm-svn: 57359
-
Anton Korobeynikov authored
llvm-svn: 57358
-
Oscar Fuentes authored
llvm-svn: 57357
-