diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-10-09 22:10:18 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-10-09 22:10:18 +0000 |
| commit | 1f1b0dbc28b565daadce7927e3f1178c9a0a6888 (patch) | |
| tree | 2d711cdae74d32199ac825911aa4cf1463455735 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
| parent | c62adb6d1a185870ce57766cd20e793545863683 (diff) | |
| download | bcm5719-llvm-1f1b0dbc28b565daadce7927e3f1178c9a0a6888.tar.gz bcm5719-llvm-1f1b0dbc28b565daadce7927e3f1178c9a0a6888.zip | |
Make a significant change to invert the control flow handling
predefined macros. Previously, these were handled by the driver,
now they are handled by the preprocessor.
Some fallout of this:
1. Instead of preprocessing two buffers (the predefines, then the
main source file) we now start preprocessing the main source
file and inject the predefines as a "psuedo #include" from the
main source file.
2. #1 allows us to nuke the Lexer::IsMainFile flag and simplify
Preprocessor::isInPrimaryFile.
3. The driver doesn't have to know about standard #defines, the
preprocessor knows, which is nice for people wanting to define
their own drivers.
4. This allows us to put normal tokens in the predefine buffer,
for example a definition for __builtin_va_list that is
target-specific, and a typedef for id in objc.
llvm-svn: 42818
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions

