- Apr 23, 2009
-
-
Douglas Gregor authored
multiple declarations of the function. Should fix PR3989 and <rdar://problem/6818429>. llvm-svn: 69905
-
Devang Patel authored
Handle corner case where clang-cc is invoked directly to compile preprocessed source file without -main-file-name. In this case, CDDebugInfo is not able identify correct main source file becase SM.isFromMainFile() returns true for locations from header files as well as locations from main source file. This patch takes conservative approach by not emitting more then one compile unit with isMain bit set. llvm-svn: 69902
-
Ted Kremenek authored
target addresses. llvm-svn: 69900
-
Steve Naroff authored
llvm-svn: 69899
-
Ted Kremenek authored
when popping location contexts. llvm-svn: 69898
-
Fariborz Jahanian authored
llvm-svn: 69896
-
Ted Kremenek authored
pieces for location contexts. llvm-svn: 69895
-
Steve Naroff authored
llvm-svn: 69894
-
Steve Naroff authored
This enables class recognition to work with PCH. I believe this means we can remove Sema::ObjCInterfaceDecls and it's usage within Sema::LookupName(). Will investigate. llvm-svn: 69891
-
Steve Naroff authored
Note: This support is non-lazy. Once we get "Cocoa.h" humming, we can optimize this. llvm-svn: 69884
-
Daniel Dunbar authored
- This shouldn't change anything, we never actually access it, but this is consistent with llvm-gcc (and 32-bit) llvm-svn: 69880
-
Chris Lattner authored
llvm-svn: 69875
-
Chris Lattner authored
llvm-svn: 69873
-
Chris Lattner authored
the type assigned by sema (and is visible with sizeof(__func__) for example) has nothing to do with what codegen ends up producing. We should eventually add a method on PredefinedExpr to handle this. In the meantime, just set up some framework and add some fixme's. llvm-svn: 69872
-
Chris Lattner authored
on armv* to be more compatible llvm-svn: 69864
-
Douglas Gregor authored
llvm-svn: 69860
-
Douglas Gregor authored
llvm-svn: 69859
-
Douglas Gregor authored
llvm-svn: 69858
-
Douglas Gregor authored
DeclContext rather than in a separate list. This makes PCH (de-)serialization trivial, so that ivars can be loaded lazily. llvm-svn: 69857
-
Douglas Gregor authored
llvm-svn: 69856
-
Douglas Gregor authored
llvm-svn: 69855
-
Anders Carlsson authored
Add a CXXConstructExpr that represents an implicit call to a C++ constructor. I think CXXTemporaryObjectExpr is going to become a subclass of CXXConstructExpr, since CXXTemporaryObjectExpr represents a syntactic temporary, for example T() llvm-svn: 69854
-
Daniel Dunbar authored
- Notably, there was a memory error here, SkipIvars does not have to be the same size as IvarsInfo. - Fariborz, please check. llvm-svn: 69850
-
Douglas Gregor authored
methods, class methods, and property implementations) and instead place all of these entities into the DeclContext. This eliminates more linear walks when looking for class or instance methods and should make PCH (de-)serialization of ObjCDecls trivial (and lazy). llvm-svn: 69849
-
Douglas Gregor authored
llvm-svn: 69843
-
Fariborz Jahanian authored
llvm-svn: 69838
-
Douglas Gregor authored
llvm-svn: 69835
-
Ted Kremenek authored
indicate whether or not the range represents an absolute range or should be extended by lexing to the end of the token. llvm-svn: 69834
-
Douglas Gregor authored
llvm-svn: 69833
-
Douglas Gregor authored
to happen (ever), but at least we'll do the right thing when it does. llvm-svn: 69829
-
- Apr 22, 2009
-
-
Douglas Gregor authored
headers. Future approaches to (de-)serializing ASTs will be based on the PCH infrastructure. llvm-svn: 69828
-
Douglas Gregor authored
Eliminate some FIXMEs in the PCH reader that were either already fixed or aren't actually things to fix llvm-svn: 69827
-
Douglas Gregor authored
in a bunch of declarations from the PCH file. We're down to loading very few declarations in Carbon-prefixed "Hello, World!": *** PCH Statistics: 6/20693 types read (0.028995%) 7/59230 declarations read (0.011818%) 50/44914 identifiers read (0.111324%) 0/32954 statements read (0.000000%) 5/6187 macros read (0.080815%) llvm-svn: 69825
-
Ted Kremenek authored
llvm-svn: 69824
-
Ted Kremenek authored
context. llvm-svn: 69823
-
Eli Friedman authored
int. Note that constant int->complex float and float->complex int casts were being miscompiled. llvm-svn: 69821
-
Douglas Gregor authored
file needs to store. CodeGen needs to see these definitions (via HandleTopLevelDecl), otherwise it won't be able to generate code for them. This patch notifies the consumer (e.g., CodeGen) about function definitions and variable definitions when the corresponding declarations are deserialized. Hence, we don't eagerly deserialize the declarations for every variable or function that has a definition in the PCH file. This gives another 5% speedup for the Carbon-prefixed "Hello, World!", and brings our PCH statistics down to something far more reasonable: *** PCH Statistics: 13/20693 types read (0.062823%) 17/59230 declarations read (0.028702%) 54/44914 identifiers read (0.120230%) 0/32954 statements read (0.000000%) 5/6187 macros read (0.080815%) llvm-svn: 69820
-
Chris Lattner authored
llvm-svn: 69819
-
Douglas Gregor authored
PCH files now contain complete information about builtins, including any declarations that have been synthesized as part of building the PCH file. When using a PCH file, we do not initialize builtins at all; when needed, they'll be found in the PCH file. This optimization translations into a 9% speedup for "Hello, World!" with Carbon.h as a prefix header and roughly a 5% speedup for 403.gcc with its prefix header. We're also reading less of the PCH file for "Hello, World!": *** PCH Statistics: 286/20693 types read (1.382110%) 1630/59230 declarations read (2.751984%) 764/44914 identifiers read (1.701029%) 1/32954 statements read (0.003035%) 5/6187 macros read (0.080815%) down from *** PCH Statistics: 411/20693 types read (1.986179%) 2553/59230 declarations read (4.310316%) 1093/44646 identifiers read (2.448148%) 1/32954 statements read (0.003035%) 21/6187 macros read (0.339421%) llvm-svn: 69815
-
Ted Kremenek authored
- Remove stale assertion that was breaking the test suite. - When popping location contexts, only add a control-flow piece for fileID locations. llvm-svn: 69814
-