about summary refs log tree commit diff
path: root/src/comp/metadata
AgeCommit message (Collapse)AuthorLines
2011-07-06rustc: Revert the conversion to interior vectors due to heap corruptionPatrick Walton-36/+35
2011-07-06rustc: Convert attribute in the AST to interior vectorsPatrick Walton-6/+6
2011-07-06rustc: Make AST paths use interior vectorsPatrick Walton-4/+4
2011-07-06rustc: Migrate tag variants to interior vectorsPatrick Walton-5/+5
2011-07-06rustc: Make object methods into interior vectorsPatrick Walton-7/+7
2011-07-06rustc: Make the various constraint-related types in middle::ty use interior ↵Patrick Walton-3/+4
vectors
2011-07-06rustc: Change constraints in types to use interior vectorsPatrick Walton-6/+6
2011-07-06rustc: Switch tag type parameters to interior vectorsPatrick Walton-2/+2
2011-07-06rustc: Use interior vectors for tag type parametersPatrick Walton-2/+2
2011-07-06Remove temporary stdlib placeholders, use actual stdlib functionsMarijn Haverbeke-3/+4
(Possible now that a snapshot took place.)
2011-07-05Change ast::meta_name_value to accept any literal, not just stringBrian Anderson-25/+28
This isn't useful for much of anything yet, since metadata::encoder doesn't know how to handle the non-string variants. Issue #611
2011-07-05Require that the meta items in a use statement have unique namesBrian Anderson-0/+2
2011-07-05Move everything syntax-related to syntax/, break deps on rest of compilerMarijn Haverbeke-41/+39
src/comp/syntax is currently just a sub-module of rustc, but it will, in the near future, be its own crate. This includes: - The AST data structure - The parser - The pretty-printer - Visit, walk, and fold - The syntax extension system - Some utility stuff that should be in the stdlib* *) Stdlib extensions currently require a snapshot before they can be used, and the win build is very broken right now. This is temporary and will be cleaned up when one of those problems goes away. A lot of code was moved by this patch, mostly towards a more organized layout. Some package paths did get longer, and I guess the new layout will take some getting used to. Sorry about that! Please try not to re-introduce any dependencies in syntax/ on any of the other src/comp/ subdirs.
2011-07-04rustc: Remove obsolete "The second has to be authed pure" commentPatrick Walton-4/+3
2011-07-04Use metadata to avoid always passing -Lrustllvm to the linker.Rafael Ávila de Espíndola-3/+19
2011-07-04Simplify.Rafael Ávila de Espíndola-11/+3
2011-07-01rustc: Move path_to_str to front::astPatrick Walton-1/+1
2011-07-01Revert "rustc: Change methods in ty::t to use interior vectors"Patrick Walton-7/+7
This reverts commit 6720ea760df41df82af880b593e5b6023608d6cd.
2011-07-01rustc: Change methods in ty::t to use interior vectorsPatrick Walton-7/+7
2011-07-01Cleanup attribute code. Issue #487Brian Anderson-26/+14
2011-07-01Track def_ids of native types so that they can be distinguishedMarijn Haverbeke-3/+11
Closes #526
2011-06-30rustc: Change function argument types to interior vectorsPatrick Walton-4/+4
2011-06-30Kill unused variablesTim Chevalier-8/+4
2011-06-30rustc: Use interior vectors for record typesPatrick Walton-2/+2
2011-06-30rustc: Use interior vectors for tuple typesPatrick Walton-2/+2
2011-06-30Move middle::attr to front::attrBrian Anderson-2/+2
2011-06-30Support type parameters in resourcesMarijn Haverbeke-3/+9
Some rather dodgy code was added to trans in the process. I'd love to discuss it with someone who knows more about types during translation.
2011-06-30Make calling resource destructors work cross-crateMarijn Haverbeke-4/+9
Tydescs are currently re-created for each compilation unit (and I guess for structural types, they have to be, though the duplication still bothers me). This means a destructor can not be inlined in the drop glue for a resource type, since other crates don't have access to the destructor body. Destructors are now compiled as separate functions with an external symbol that can be looked up in the crate (under the resource type's def_id), and called from the drop glue.
2011-06-29Re-enable tidy (it was broken) and fix various non-tidy things.Graydon Hoare-6/+8
2011-06-29Be more strategic about linking to rust cratesBrian Anderson-0/+2
Instead of linking directly to the rust crate, try to figure out the location and name of the library from the file name, then call gcc with appropriate -L, -l flags. This will allow dynamic linking to be more forgiving about where it loads the library from at runtime - currently a stage3 compiler can't run correctly from the stage0 directory. Only tested on Linux. Fingers crossed.
2011-06-29Write metadata for sythesized name/vers items to the crate's link attrBrian Anderson-1/+66
If the crate doesn't specify it's name or version, the defaults need to be exported in the crate metadata
2011-06-29Fix resource encoding bugs.Graydon Hoare-2/+3
2011-06-28Cleanup attribute code. Issue #487Brian Anderson-12/+15
2011-06-28Remove the last traces of the distinction between export / local meta itemsBrian Anderson-30/+0
Issue #487
2011-06-28Use span_fatal for failure to find cratesBrian Anderson-6/+5
2011-06-28Rework how linkage attributes are determinedBrian Anderson-61/+25
The meta items within a crate's link attribute are used in linkage: #[link(name = "std", vers = "1.0", custom = "whatever")]; Name and vers are treated specially, and everything else is hashed together into the crate meta hash. Issue #487
2011-06-28Add some helper functions for attributes. Issue #487Brian Anderson-0/+4
2011-06-28Write metadata for more meta_item types. Issue #487Brian Anderson-33/+65
2011-06-28Write metadata for crate attributes. Issue #487Brian Anderson-22/+70
2011-06-28Add emacs variables to encoder.rsBrian Anderson-0/+10
2011-06-28List crate attributes when running rustc with '--ls'Brian Anderson-22/+60
2011-06-28Use "" in the native_name as an indication that no extra options have toRafael Ávila de Espíndola-8/+2
be passed to the "linker". Use that for libc.
2011-06-27Rename metadata::defs to metadata::tagsBrian Anderson-3/+3
2011-06-27Move what's left of metadata::cwriter into middle::transBrian Anderson-10/+0
2011-06-27Cleanup in metadata moduleBrian Anderson-2/+8
2011-06-27Extract metadata::decoder from metadata::creaderBrian Anderson-267/+284
2011-06-27Extract metadata::tydecode from metadata::creaderBrian Anderson-387/+399
2011-06-27Extract llvm-independent code from cwriter to metadata::encoderBrian Anderson-484/+483
2011-06-27Move metadata tag definition to metadata::defsBrian Anderson-92/+76
2011-06-27Limit exports from metadata::tyencodeBrian Anderson-0/+7