- Dec 09, 2007
-
-
Chris Lattner authored
not the start of a logical line. Be careful about this distinction, which affects when newlines are printed and when paste-avoidance happens, etc. This fixes PR1848, thanks to Neil for noticing this! llvm-svn: 44743
-
Chris Lattner authored
This would cause us to emit different code (in -E mode) for these two files: --- #define t(x) x t(a 3) --- #define t(x) x t(a 3) --- In one case, -E would print "a\n3", in the other it printed "a3". Now it prints "a3" for both. This is part of PR1848. llvm-svn: 44742
-
Chris Lattner authored
llvm-svn: 44731
-
- Dec 08, 2007
-
-
Anders Carlsson authored
llvm-svn: 44712
-
- Dec 07, 2007
-
-
Steve Naroff authored
Omit the field name when including the super class structure template. This allows us to access a superclasses ivars without deriving the absolute path. The comments below say a bit more... llvm-svn: 44688
-
Fariborz Jahanian authored
type. llvm-svn: 44685
-
Fariborz Jahanian authored
llvm-svn: 44681
-
Steve Naroff authored
Rewrite 'super' within a class method. This required some minor tweaks to the front-end. llvm-svn: 44673
-
- Dec 06, 2007
-
-
Fariborz Jahanian authored
to rewriter (my previous patch). llvm-svn: 44665
-
Ted Kremenek authored
GetLanguage, and InitializeLangOptions. The goal is to break up this logic into atomic units of functionality that can later be refactored into better driver logic that is capable of handling a mixture of source files of different languages. llvm-svn: 44642
-
Chris Lattner authored
llvm-svn: 44639
-
- Dec 05, 2007
-
-
Ted Kremenek authored
class to serialize and deserialize translation units. llvm-svn: 44634
-
Steve Naroff authored
Make sure the class methods get attached to the metaclass object. Need to query the implementation, not the interface... llvm-svn: 44633
-
Ted Kremenek authored
for serializing/deserializing ASTs that is decoupled from the logic in SerializationTest (which will soon be rewritten to use this interface). llvm-svn: 44631
-
Ted Kremenek authored
Modified: ctor of SerializationTest: Now takes LangOptions argument. We will eventually serialize this as well. llvm-svn: 44630
-
Chris Lattner authored
llvm-svn: 44622
-
Ted Kremenek authored
deserialized ASTs into the function CreateASTConsumer(). This function is called by ProcessInputFile, and soon the logic that processes deserialized ASTs. llvm-svn: 44618
-
Fariborz Jahanian authored
"struct objc_super". llvm-svn: 44616
-
Ted Kremenek authored
llvm-svn: 44592
-
Steve Naroff authored
Add the definition of objc_super... llvm-svn: 44588
-
- Dec 04, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 44583
-
Fariborz Jahanian authored
llvm-svn: 44580
-
Fariborz Jahanian authored
llvm-svn: 44577
-
Ted Kremenek authored
any alternative targets at this point other than "darwin," so we now default to Darwin targets (for now). llvm-svn: 44572
-
Ted Kremenek authored
llvm-svn: 44561
-
Ted Kremenek authored
we default to "i386-apple-darwin". This is an interim solution. Removed processing of "linux" triples from Targets.cpp, since we don't have any sensical Linux target support (yet). Cleaned up error processing of targets; added better diagnostics. llvm-svn: 44560
-
Fariborz Jahanian authored
llvm-svn: 44556
-
- Dec 03, 2007
-
-
Ted Kremenek authored
SerializationTest (subclass of ASTConsumer) now takes Diagnostics& in its ctor. llvm-svn: 44555
-
Fariborz Jahanian authored
llvm-svn: 44553
-
Ted Kremenek authored
http://llvm.org/viewvc/llvm-project?view=rev&revision=44551 Removed debugging fprintfs for printing targets. Implemented error messages when processing invalid targets. llvm-svn: 44552
-
Ted Kremenek authored
replaces the functionality previously provided by just "-arch" (which is still supported but has different semantics). The new behavior is as follows: (1) If the user does not specify -triple: (a) If no -arch options are specified, the target triple used is the host triple (in llvm/Config/config.h). (b) If one or more -arch's are specified (and no -triple), then there is one triple for each -arch, where the specified arch is substituted for the arch in the host triple. Example: host triple = i686-apple-darwin9 command: clang -arch ppc -arch ppc64 ... triples used: ppc-apple-darwin9 ppc64-apple-darwin9 (2) The user does specify a -triple (only one allowed): (a) If no -arch options are specified, the triple specified by -triple is used. E.g clang -triple i686-apple-darwin9 (b) If one or more -arch options are specified, then the triple specified by -triple is used as the primary target, and the arch's specified by -arch are used to create secondary targets. For example: clang -triple i686-apple-darwin9 -arch ppc -arch ppc64 has the following targets: i686-apple-darwin9 (primary target) ppc-apple-darwin9 ppc64-apple-darwin9 Other changes related to the changes to the driver: - TargetInfoImpl now includes the triple string. - TargetInfo::getTargetTriple returns the triple for its primary target. - test case test/Parser/portability.c has been updated because "-arch linux" is no longer valid ("linux" is an OS, not an arch); instead we use a bogus architecture "bogusW16W16" where WCharWidth=16 and WCharAlign=16. llvm-svn: 44551
-
Chris Lattner authored
llvm-svn: 44550
-
Fariborz Jahanian authored
llvm-svn: 44548
-
Fariborz Jahanian authored
(Also fixed a regression caused by recent changes to synthesis of structs). llvm-svn: 44540
-
- Dec 02, 2007
-
-
Chris Lattner authored
t.c:3322:5: warning: cannot codegen this yet __asm__ ("bswap %0" : "+r" (_data)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ instead of: Unimplemented stmt! (AsmStmt 0x80eaa0 <t.c:3331:5, line:3334:28>) llvm-svn: 44501
-
Chris Lattner authored
llvm-svn: 44499
-
Chris Lattner authored
rewriter emit this error if it fails to rewrite an @encode: t.m:17:9: error: rewriter could not replace sub-expression due to macros c = ENC(char *)[2] + 4; ^~~~~~~~~~~ ... where ENC is: #define ENC @encode llvm-svn: 44498
-
- Nov 30, 2007
-
-
Chris Lattner authored
that are builtin and those that are aren't. This is a bunch of API refactoring that will make this possible, but there is no functionality change yet. llvm-svn: 44473
-
Ted Kremenek authored
Modified serialization of IdentifierTable to self-register itself with the Deserializer. llvm-svn: 44471
-
Chris Lattner authored
llvm-svn: 44468
-