- Dec 02, 2009
-
-
Devang Patel authored
llvm-svn: 90281
-
Daniel Dunbar authored
In SourceManager::isBeforeInTranslationUnit, if we are trying to compare two source locations with no common ancestor in the include stack, determine order by assuming memory buffers preceed files, and then that FileIDs are created in order. The later assumption is patently false, but this was already broken -- this situation is conceptually impossible, my feeling is we should fix SourceManager and friends to make it impossible in practice as well. However, we need to fix PR5662 and perhaps some other things involving memory buffers first. In the short term I'm pretty sure this is reliable. Chris, Argiris, is this going to break anything that wasn't already broken? llvm-svn: 90280
-
Ted Kremenek authored
llvm-svn: 90277
-
- Dec 01, 2009
-
-
Chris Lattner authored
in diagnostics when we fail to open a file. This allows us to report things like: $ clang test.c -I. test.c:2:10: fatal error: error opening file './foo.h': Permission denied #include "foo.h" ^ llvm-svn: 90276
-
Chris Lattner authored
instead of returning an ambiguous reason. llvm-svn: 90275
-
Ted Kremenek authored
llvm-svn: 90274
-
Eli Friedman authored
"Fixes" PR5645. llvm-svn: 90272
-
Eric Christopher authored
llvm-svn: 90271
-
John McCall authored
Gets clang-on-clang passing again. llvm-svn: 90270
-
Evan Cheng authored
- A valno should be set HasRedefByEC if there is an early clobber def in the middle of its live ranges. It should not be set if the def of the valno is defined by an early clobber. - If a physical register def is tied to an use and it's an early clobber, it just means the HasRedefByEC is set since it's still one continuous live range. - Add a couple of missing checks for HasRedefByEC in the coalescer. In general, it should not coalesce a vr with a physical register if the physical register has a early clobber def somewhere. This is overly conservative but that's the price for using such a nasty inline asm "feature". llvm-svn: 90269
-
Ted Kremenek authored
llvm-svn: 90268
-
Ted Kremenek authored
llvm-svn: 90267
-
John McCall authored
implicit member access to a specific declaration, go ahead and create it as a DeclRefExpr or a MemberExpr (with implicit CXXThisExpr base) as appropriate. Otherwise, create an UnresolvedMemberExpr or DependentScopeMemberExpr with a null base expression. By representing implicit accesses directly in the AST, we get the ability to correctly delay the decision about whether it's actually an instance member access or not until resolution is complete. This permits us to correctly avoid diagnosing the 'problem' of 'MyType::foo()' where the relationship to the type isn't really known until instantiation. llvm-svn: 90266
-
Daniel Dunbar authored
llvm-svn: 90264
-
Daniel Dunbar authored
llvm-svn: 90263
-
Daniel Dunbar authored
llvm-svn: 90262
-
Daniel Dunbar authored
to use it so it at least won't try to access Sema once it is gone. llvm-svn: 90261
-
Jim Grosbach authored
llvm-svn: 90260
-
Chris Lattner authored
llvm-svn: 90258
-
Chris Lattner authored
llvm-svn: 90257
-
Dan Gohman authored
framework omits differentiated edge sources in the case where the labels are empty strings. llvm-svn: 90254
-
Dan Gohman authored
llvm-svn: 90253
-
Dan Gohman authored
llvm-svn: 90252
-
Daniel Dunbar authored
llvm-svn: 90251
-
Rafael Espindola authored
Exit the command line into <built-in> instead of going directly from the command line to the input file. We passed <built-in> on the way in, so we should pass it again on the way out. llvm-svn: 90250
-
Fariborz Jahanian authored
of a subclass (direct or indirect) of a weak_import root class, emit a weak reference for the root class's metaclass (should complete radar 6815425). llvm-svn: 90249
-
Devang Patel authored
Clear function specific containers while processing end of a function, even if DW_TAG_subprogram for current function is not found. llvm-svn: 90247
-
Jim Grosbach authored
llvm-svn: 90246
-
Ted Kremenek authored
Fix early-return logic in scanReachableSymbols() to match the rest of the recursive logic in the methods of ScanReachableSymbols. llvm-svn: 90245
-
Daniel Dunbar authored
llvm-svn: 90244
-
Johnny Chen authored
llvm-svn: 90243
-
Douglas Gregor authored
override virtual functions. Also, eliminate a (now redundant) call to AddOverriddenMethods. llvm-svn: 90242
-
Douglas Gregor authored
common to both parsing and template instantiation, so that we'll find overridden virtuals for member functions of class templates when they are instantiated. Additionally, factor out the checking for pure virtual functions, so that it will be executed both at parsing time and at template instantiation time. These changes fix PR5656 (for real), although one more tweak w.r.t. member function templates will be coming along shortly. llvm-svn: 90241
-
Jakob Stoklund Olesen authored
We want LiveVariables clients to use methods rather than accessing the getVarInfo data structure directly. That way it will be possible to change the LiveVariables representation. llvm-svn: 90240
-
Douglas Gregor authored
ValueDecl, because that isn't always the case in ill-formed code. Diagnose a common mistake (forgetting to provide a template argument list for a class template, PR5655) and dyn_cast so that we handle the general problem of referring to a non-value declaration gracefully. llvm-svn: 90239
-
Douglas Gregor authored
be defined as pure. Fixes PR5656. llvm-svn: 90237
-
Gabor Greif authored
llvm-svn: 90236
-
Gabor Greif authored
llvm-svn: 90230
-
Nuno Lopes authored
llvm-svn: 90229
-
Daniel Dunbar authored
Also, add an -ast-from-source option to index-test which allows index-test to run on source files directly. llvm-svn: 90223
-