Commit Graph

12 Commits

Author SHA1 Message Date
Zach Panzarino
e3a4147ac9 Update copyright date 2015-12-31 23:28:40 +00:00
Jordan Rose
dbd3b60f6b [Serialization] Move (Module)Status and validateSerializedAST into a namespace.
Also into a separate file.

Before (swift/Serialization/SerializedModuleLoader.h):
  ModuleStatus
  SerializedModuleLoader::ValidationInfo
  SerializedModuleLoader::ExtendedValidationInfo
  SerializedModuleLoader::isSerializedAST
  SerializedModuleLoader::validateSerializedAST

After (swift/Serialization/Validation.h):
  serialization::Status
  serialization::ValidationInfo
  serialization::ExtendedValidationInfo
  serialization::isSerializedAST
  serialization::validateSerializedAST

No functionality change, just a lot of renaming and a bit of reorganizing.

Swift SVN r25226
2015-02-12 05:32:25 +00:00
Jordan Rose
2c13b2e6fe Remove SwiftASTStreamerPass and the LegacyDebugInfo option.
Finishes the removal of the old "wrapped" module section that was made
unnecessary in r12922/3. Now that we no longer use the old compiler, we
don't need this at all. That also removes the need for SwiftTargetMachine.

No functionality change; this was all dead code.

Swift SVN r14758
2014-03-06 22:05:03 +00:00
Jordan Rose
cc3119be51 Teach the Mach-O-based AST importer to accept bare serialized ASTs.
This necessitated adding a new function to validate a serialized AST, so
that we can get the same information that used to be extracted from the
section header.

For now, we'll continue accepting the wrapped ASTs as well, since we
haven't changed the existing debug info generator.

Swift SVN r12922
2014-01-24 18:42:07 +00:00
Jordan Rose
e54deeb3c5 [serialization] Add missing headers to .cpp file.
Relying on the order of includes is a Bad Thing. No functionality change.

Swift SVN r12920
2014-01-24 18:42:04 +00:00
Adrian Prantl
9bd48f8557 Bugfix. Thanks for catching this, Jordan.
Swift SVN r9326
2013-10-14 20:29:39 +00:00
Adrian Prantl
3d9b27bcfc Debug info: Don't require 0-termination in the membuffer.
Thanks to Greg for finding this.

Swift SVN r8360
2013-09-17 22:21:21 +00:00
Adrian Prantl
e3b30dbbf9 Silence a couple more warnings.
Swift SVN r8347
2013-09-17 20:29:13 +00:00
Adrian Prantl
b34d631aaf Debug info: Implement multi-module swift ASTSections.
When multiple swift .o files are linked, ld automatically concatenates
the swift/AST sections.
Updated section header, SwiftASTstreamer, ASTSectionImporter, and
lldb-moduleimport-test to support this feature.

Swift SVN r8325
2013-09-17 02:50:54 +00:00
Adrian Prantl
d7c64060cf Debug info: Don't copy the memory for a serialized swift module in an __ast
section. Thanks to Jordan for pointing this out.
No functionality change.

Swift SVN r8022
2013-09-07 00:44:32 +00:00
Adrian Prantl
e77baa78b7 Rename __DWARF/__apple_ast segment and section to __SWIFT/__ast so the
linker doesn't discard it.

Swift SVN r7958
2013-09-05 20:46:34 +00:00
Adrian Prantl
2063a27aea Relocate Mach-O AST section parsing from SerializedModuleLoader/ to ASTSectionImporter/.
Swift SVN r7869
2013-09-03 21:56:53 +00:00