Argyrios Kyrtzidis
63afa49add
Move ASTLocation and DeclReferenceMap from the AST library to the Index library.
...
llvm-svn: 74859
2009-07-06 21:34:47 +00:00
Argyrios Kyrtzidis
b0048027ba
Rename 'ASTNode' -> 'ASTLocation'.
...
ASTLocation is a much better name for its intended purpose which to represent a "point" into the AST.
llvm-svn: 74858
2009-07-06 21:34:20 +00:00
Evan Cheng
ba2410b7ca
Avoid adding a duplicate def. This fixes PR4478.
...
llvm-svn: 74857
2009-07-06 21:34:05 +00:00
Owen Anderson
2370b4d81f
No need to double-include config.h
...
llvm-svn: 74854
2009-07-06 21:24:37 +00:00
Ted Kremenek
9848b557c8
NewCastRegion:
...
- Have test for 'CodeTextRegion' dominate other region tests.
- Use 'getAsRecordType' instead of isa<RecordType>
llvm-svn: 74853
2009-07-06 21:01:16 +00:00
Ted Kremenek
3ad4b3bca3
Fix loop so that 'continue' statements actually cause the loop to iterate.
...
llvm-svn: 74852
2009-07-06 20:53:52 +00:00
Ted Kremenek
9e010e11c3
Move the new 'CastRegion' implementation from RegionStoreManager to StoreManager
...
(its superclass). This will allow us to experiment with using the new CastRegion
with BasicStoreManager, and gradually phase out the old implementation.
llvm-svn: 74851
2009-07-06 20:21:51 +00:00
Douglas Gregor
e64c196868
Fix a problem with false diagnostics when comparing distinct NULL pointer types, from David Majnemer
...
llvm-svn: 74850
2009-07-06 20:14:23 +00:00
Ted Kremenek
b1281025f1
Update checker build.
...
llvm-svn: 74849
2009-07-06 19:57:59 +00:00
Douglas Gregor
1342e84c17
Fix PR 4489, a crash in PCH loading that occurs when loading the name
...
of a top-level declaration loads another top-level declaration of the
same name whose type depends on the first declaration having been
completed. This commit breaks the circular dependency by delaying
loads of top-level declarations triggered by loading a name until we
are no longer recursively loading types or declarations.
llvm-svn: 74847
2009-07-06 18:54:52 +00:00
Owen Anderson
1d182d08ba
We need to include config.h to get the proper setting to LLVM_MULTITHREADED.
...
Patch by Xerxes Ranby.
llvm-svn: 74846
2009-07-06 18:50:47 +00:00
Owen Anderson
39f00cc1d4
Thread LLVMContext through the constant folding APIs, which touches a lot of files.
...
llvm-svn: 74844
2009-07-06 18:42:36 +00:00
Ted Kremenek
0578e43862
Fix <rdar://problem/7033733>. The CF_RETURNS_RETAINED attribute should work if the return type on an Objective-C method is a CF type reference, not just an Objective-C object reference.
...
llvm-svn: 74841
2009-07-06 18:30:43 +00:00
Misha Brukman
0774820306
* Allow skipping parts of the installation to be able to do it in parts if one
...
phase fails and the user wants to reinstall one of the components.
* Fixed LLVM-GCC configuration flags: s/--with-gnu-{as,ld}/--with-{as,ld}/
The former is a boolean flag, the latter is a flag that takes a path.
* Added a new flag CROSS_MARCH, defaults to armv6.
llvm-svn: 74840
2009-07-06 18:29:03 +00:00
Sanjiv Gupta
0a1e2787a0
pic16 doesn't have a Data64bitsDirective. Set it NULL explicitly to tell the generic code to not pick the default.
...
llvm-svn: 74839
2009-07-06 18:09:11 +00:00
Sanjiv Gupta
cf5ea6c26f
pic16 isn't ready to handle llvm.metadata yet.
...
llvm-svn: 74838
2009-07-06 18:07:06 +00:00
Chris Lattner
7f31824a44
Add two new accessors to the C bindings, patch by Wladimir van der Laan!
...
llvm-svn: 74836
2009-07-06 17:29:59 +00:00
Chris Lattner
738cc28f4d
improve portability to windows, patch by Xerces Ranby!
...
llvm-svn: 74835
2009-07-06 17:24:48 +00:00
Jeffrey Yasskin
5a2e52182a
Oops, I #included errno.h from inside the llvm::sys namespace.
...
llvm-svn: 74834
2009-07-06 16:50:27 +00:00
Douglas Gregor
dce892e128
Parsing fix for out-of-line constructors, from Piotr Rak
...
llvm-svn: 74833
2009-07-06 16:40:48 +00:00
Douglas Gregor
9d243d47dd
Fix out-of-source regression testing for makefiles
...
llvm-svn: 74832
2009-07-06 16:35:57 +00:00
Douglas Gregor
04318256b7
Keep track of the Expr used to describe the size of an array type,
...
from Enea Zaffanella!
llvm-svn: 74831
2009-07-06 15:59:29 +00:00
Douglas Gregor
19623dc075
Fix bitfield promotion in the presence of explicit casts, from Abrama Bagnara.
...
llvm-svn: 74830
2009-07-06 15:38:40 +00:00
Stuart Hastings
e1cd1b5d2a
Mark this test as Darwin only. Patch by Bill Wendling.
...
llvm-svn: 74829
2009-07-06 15:36:23 +00:00
Duncan Sands
ef86842ca2
Fix the cmake build - patch by Xerxes Rånby.
...
llvm-svn: 74825
2009-07-06 14:28:32 +00:00
Sanjiv Gupta
a0396d9013
Reverting back the changes checked-in accidently.
...
llvm-svn: 74823
2009-07-06 10:34:10 +00:00
Sanjiv Gupta
b89d3db1fd
Implement _CONFIG macro to allow users to se to configuration settings on the part.
...
Implement _section macro to allow users to place objects in specific sections.
Implement _address macro to allow users to place objects at a particular address.
Placing objects at a memory address:
crate a unique section name from varname, address, object type and put that section at specified address. Mark this section a full (size = banksize) so that other objects do not compete for it while placing objects to sections in AsmPrinter.
llvm-svn: 74822
2009-07-06 10:18:37 +00:00
Bruno Cardoso Lopes
f539f03289
Changed ELFCodeEmitter to inherit from ObjectCodeEmitter
...
llvm-svn: 74821
2009-07-06 09:26:48 +00:00
Sanjiv Gupta
5d569c563d
Corrected the names description. Change in a comment. No functionality change.
...
llvm-svn: 74819
2009-07-06 08:22:15 +00:00
Bruno Cardoso Lopes
3527ccdac8
Cleanup MachO writer and code emitter. Fix 80 cols problems, remove extra spaces, shrink down includes and move some methods out-of-line
...
llvm-svn: 74817
2009-07-06 06:40:51 +00:00
Zhongxing Xu
e1a3ace8ab
Further cleanup of region invalidation code. No functionality change.
...
llvm-svn: 74816
2009-07-06 06:01:24 +00:00
Zhongxing Xu
45b5302eaa
AllocaRegion and SymbolicRegion are both boundable.
...
llvm-svn: 74815
2009-07-06 05:34:56 +00:00
Bruno Cardoso Lopes
765655535a
Just forgot to include the two new files
...
llvm-svn: 74814
2009-07-06 05:16:40 +00:00
Bruno Cardoso Lopes
5661ea68e7
Add the Object Code Emitter class. Original patch by Aaron Gray, I did some
...
cleanup, removed some #includes and moved Object Code Emitter out-of-line.
llvm-svn: 74813
2009-07-06 05:09:34 +00:00
Zhongxing Xu
1fb1cf4e26
Start to gradually move region invalidation code into store manager.
...
No functionality change.
llvm-svn: 74812
2009-07-06 03:41:27 +00:00
Owen Anderson
605a8c743f
More LLVMContext-ification.
...
llvm-svn: 74811
2009-07-06 01:34:54 +00:00
Argyrios Kyrtzidis
1561c6cf54
Having tests that depend on previously created files is bad idea. Fix them to be self-sufficient.
...
llvm-svn: 74810
2009-07-06 00:03:47 +00:00
Oscar Fuentes
c296b89d51
CMake: Fixes previous change: CMAKE_BUILD_TYPE is unknown when
...
generating project files for MSVC.
llvm-svn: 74809
2009-07-05 23:58:20 +00:00
Eli Friedman
c131d3b5a2
Fix for PR4502: add calculation of the integer conversion rank for
...
wchar_t.
llvm-svn: 74808
2009-07-05 23:44:27 +00:00
Owen Anderson
e70b637033
More LLVMContext-ification.
...
llvm-svn: 74807
2009-07-05 22:41:43 +00:00
Nick Lewycky
d687b0380c
There are five floating point types.
...
llvm-svn: 74806
2009-07-05 22:35:49 +00:00
Eli Friedman
245f229df4
More tweaks to types for OpenBSD. Patch by Jonathan Gray.
...
llvm-svn: 74805
2009-07-05 22:31:18 +00:00
Nick Lewycky
4f8d9eeadc
There are *four* lights!
...
llvm-svn: 74804
2009-07-05 22:23:28 +00:00
Argyrios Kyrtzidis
5641111e3f
Make use of the Index library through the index-test tool.
...
'index-test' is now able to provide additional info for a Decl, through multiple AST files:
-Find declarations
-Find definitions
-Find references
llvm-svn: 74803
2009-07-05 22:22:35 +00:00
Argyrios Kyrtzidis
fe37cc831b
Introduce the 'Index' library.
...
Its purpose is to provide the basic infrastructure for cross-translation-unit analysis like indexing, refactoring, etc.
Currently it is very "primitive" and with no type-names support. It can provide functionality like
"show me all references of this function from these translation units".
llvm-svn: 74802
2009-07-05 22:22:19 +00:00
Argyrios Kyrtzidis
e568a9792f
Introduce the DeclReferenceMap class inside the AST library.
...
DeclReferenceMap (similar to ParentMap) is a helper class for mapping Decls to the AST nodes that reference them.
A client will initialize it by passing an ASTContext to its constructor and later use it to iterate over
the references of a Decl.
References are mapped and retrieved using the primary declaration (Decl::getPrimaryDecl()) of a particular Decl.
llvm-svn: 74801
2009-07-05 22:22:06 +00:00
Argyrios Kyrtzidis
02dd4f9389
Introduce the virtual method Decl::getPrimaryDecl().
...
When a Decl subclass can have multiple re-declarations in the same declaration context (like FunctionDecl),
getPrimaryDecl() will return a particular Decl that all of them will point to as the "primary" declaration.
llvm-svn: 74800
2009-07-05 22:21:56 +00:00
Argyrios Kyrtzidis
cdfe1f210b
Avoid re-checking the parameters of a function, when trying to resolve a location.
...
llvm-svn: 74799
2009-07-05 22:21:46 +00:00
Argyrios Kyrtzidis
a4d36d5a58
Make use of ASTNode for return value of clang::ResolveLocationInAST() and in the index-test tool.
...
llvm-svn: 74798
2009-07-05 22:21:40 +00:00
Argyrios Kyrtzidis
97e10d64e8
Introduce ASTNode class into the AST library.
...
ASTNode is an immutable pair of a Decl and Stmt. If Stmt is not null, Decl should be its immediate parent.
llvm-svn: 74797
2009-07-05 22:21:28 +00:00