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
Argyrios Kyrtzidis
62afb198be
Do an early check for function definition.
...
llvm-svn: 74796
2009-07-05 22:21:17 +00:00
Eli Friedman
e3aa454e2f
Per PR4506, fix the type of size_t on OpenBSD.
...
llvm-svn: 74795
2009-07-05 18:47:56 +00:00
Oscar Fuentes
5674531255
CMake: Avoids defining _DEBUG on MSVC Release builds. Fixes PR 4379.
...
llvm-svn: 74794
2009-07-05 18:43:52 +00:00
Duncan Sands
78cd3e5472
Clarify that later compiler versions are known to
...
fail to build the Ada front-end.
llvm-svn: 74793
2009-07-05 12:01:44 +00:00
Nick Lewycky
3292908132
When comparing constants, consider a less wide constant to be "less complex"
...
than a wider one, before trying to compare their contents which will crash
if their sizes are different.
llvm-svn: 74792
2009-07-04 17:24:52 +00:00
Jeffrey Yasskin
ca6d224d71
Have cmake define HAVE_STRERROR and friends to 1 when they're defined at all.
...
llvm-svn: 74791
2009-07-04 16:37:12 +00:00
Mikhail Glushenkov
4f0fa1539c
Make -save-temps=obj play better with -o.
...
Use only the *dirname* of the pathname given to -o, so that -o can still be used
to name the output executable. This is more like what GCC 4.5 does.
llvm-svn: 74790
2009-07-04 14:23:32 +00:00
Mikhail Glushenkov
9297a52715
Regenerate.
...
llvm-svn: 74789
2009-07-04 14:23:08 +00:00
Zhongxing Xu
66db13b7ac
CompoundLiteralRegion is boundable when it is not in the file scope.
...
llvm-svn: 74788
2009-07-04 11:43:03 +00:00
Sebastian Redl
4f4d7b5d8e
Catch function redeclarations with incompatible exception specifications.
...
llvm-svn: 74787
2009-07-04 11:39:00 +00:00
Zhongxing Xu
108f89cbfa
StringRegion is not boundable.
...
llvm-svn: 74786
2009-07-04 11:31:53 +00:00
Mikhail Glushenkov
95bac6f77c
LLVMC can be now compiled w/o dynamic plugin support.
...
Controlled via the --enable-llvmc-dynamic-plugins option.
llvm-svn: 74784
2009-07-04 03:55:25 +00:00
Mikhail Glushenkov
29d06ea46c
LLVMC doesn't need ENABLE_PIC to build now.
...
llvm-svn: 74783
2009-07-04 03:54:54 +00:00
Mike Stump
bbd8707f6e
Fix build.
...
llvm-svn: 74782
2009-07-03 22:11:58 +00:00
Owen Anderson
340288c621
Even more passes being LLVMContext'd.
...
llvm-svn: 74781
2009-07-03 19:42:02 +00:00