add_swift_library(swiftIRGen
  DebugTypeInfo.cpp
  EnumPayload.cpp
  ExtraInhabitants.cpp
  GenArchetype.cpp
  GenCast.cpp
  GenClangDecl.cpp
  GenClangType.cpp
  GenClass.cpp
  GenControl.cpp
  GenCoverage.cpp
  GenDecl.cpp
  GenFunc.cpp
  GenHeap.cpp
  GenInit.cpp
  GenMeta.cpp
  GenObjC.cpp
  GenEnum.cpp
  GenExistential.cpp
  GenOpaque.cpp
  GenPoly.cpp
  GenProto.cpp
  GenStruct.cpp
  GenTuple.cpp
  GenType.cpp
  IRGen.cpp
  IRGenDebugInfo.cpp
  IRGenFunction.cpp
  IRGenModule.cpp
  IRGenSIL.cpp
  Linking.cpp
  SwiftTargetInfo.cpp
  StructLayout.cpp
  TypeLayoutVerifier.cpp
  UnimplementedTypeInfo.cpp
  LINK_LIBRARIES
    swiftAST
    swiftLLVMPasses

    # Clang dependencies.
    # FIXME: Clang should really export these in some reasonable manner.
    clangCodeGen
    clangAST
)

add_swift_library(swiftIRGen
  DebugTypeInfo.cpp
  EnumPayload.cpp
  ExtraInhabitants.cpp
  GenArchetype.cpp
  GenCast.cpp
  GenClangDecl.cpp
  GenClangType.cpp
  GenClass.cpp
  GenControl.cpp
  GenCoverage.cpp
  GenDecl.cpp
  GenFunc.cpp
  GenHeap.cpp
  GenInit.cpp
  GenMeta.cpp
  GenObjC.cpp
  GenEnum.cpp
  GenExistential.cpp
  GenOpaque.cpp
  GenPoly.cpp
  GenProto.cpp
  GenStruct.cpp
  GenTuple.cpp
  GenType.cpp
  IRGen.cpp
  IRGenDebugInfo.cpp
  IRGenFunction.cpp
  IRGenModule.cpp
  IRGenSIL.cpp
  Linking.cpp
  SwiftTargetInfo.cpp
  StructLayout.cpp
  TypeLayoutVerifier.cpp
  UnimplementedTypeInfo.cpp
  LINK_LIBRARIES
    swiftAST
    swiftLLVMPasses
    swiftSIL
    swiftSILGen

    # Clang dependencies.
    # FIXME: Clang should really export these in some reasonable manner.
    clangCodeGen
    clangAST
)

Make sure that swiftIRGen links with swiftSIL and swiftSILGen since it depends on them.
Make sure that swiftIRGen links with swiftSIL and swiftSILGen since it depends on them.

I believe this was not caught before since the users of IRGen included those.
swift-llvm-opt only includes swiftIRGen so missing symbols resulted while
linking.

Swift SVN r32805
