Files
swift-mirror/include/swift/AST/KnownDecls.def
Joe Groff 7612df1918 Runtime: Rename 'becomeNSError' to 'bridgeErrorTypeToNSError'.
We may want to use optimized ErrorType representations that don't naturally "become" NSErrors, such as tagged-pointer representations of small error enums, or a tagged function pointer to a deferred error type constructor. Rename the runtime function to something a bit more descriptive of its real purpose, not its implementation.

Swift SVN r27209
2015-04-10 17:37:40 +00:00

70 lines
2.7 KiB
C++

//===-- KnownDecl.def - Compiler declaration metaprogramming ----*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// This file defines macros used for macro-metaprogramming with compiler-known
// declarations.
//
//===----------------------------------------------------------------------===//
#ifndef FUNC_DECL
# define FUNC_DECL(Name, Id)
#endif
FUNC_DECL(ArrayForceCast, "_arrayForceCast")
FUNC_DECL(ArrayConditionalCast, "_arrayConditionalCast")
FUNC_DECL(DictionaryUpCast, "_dictionaryUpCast")
FUNC_DECL(DictionaryBridgeToObjectiveC, "_dictionaryBridgeToObjectiveC")
FUNC_DECL(DictionaryDownCast, "_dictionaryDownCast")
FUNC_DECL(DictionaryDownCastConditional, "_dictionaryDownCastConditional")
FUNC_DECL(DictionaryBridgeFromObjectiveC,
"_dictionaryBridgeFromObjectiveC")
FUNC_DECL(DictionaryBridgeFromObjectiveCConditional,
"_dictionaryBridgeFromObjectiveCConditional")
FUNC_DECL(SetUpCast, "_setUpCast")
FUNC_DECL(SetBridgeToObjectiveC, "_setBridgeToObjectiveC")
FUNC_DECL(SetDownCast, "_setDownCast")
FUNC_DECL(SetDownCastConditional, "_setDownCastConditional")
FUNC_DECL(SetBridgeFromObjectiveC, "_setBridgeFromObjectiveC")
FUNC_DECL(SetBridgeFromObjectiveCConditional, "_setBridgeFromObjectiveCConditional")
FUNC_DECL(ConvertPointerToPointerArgument,
"_convertPointerToPointerArgument")
FUNC_DECL(ConvertInOutToPointerArgument,
"_convertInOutToPointerArgument")
FUNC_DECL(ConvertMutableArrayToPointerArgument,
"_convertMutableArrayToPointerArgument")
FUNC_DECL(ConvertConstArrayToPointerArgument,
"_convertConstArrayToPointerArgument")
FUNC_DECL(ConvertConstStringToUTF8PointerArgument,
"_convertConstStringToUTF8PointerArgument")
FUNC_DECL(AllocateUninitializedArray,
"_allocateUninitializedArray")
FUNC_DECL(ForceBridgeFromObjectiveC,
"_forceBridgeFromObjectiveC")
FUNC_DECL(ConditionallyBridgeFromObjectiveC,
"_conditionallyBridgeFromObjectiveC")
FUNC_DECL(BridgeErrorTypeToNSError,
"_bridgeErrorTypeToNSError")
FUNC_DECL(ForceBridgeFromObjectiveCBridgeable,
"_forceBridgeFromObjectiveC_bridgeable")
FUNC_DECL(ConditionallyBridgeFromObjectiveCBridgeable,
"_conditionallyBridgeFromObjectiveC_bridgeable")
FUNC_DECL(DidEnterMain, "_didEnterMain")
FUNC_DECL(DiagnoseUnexpectedNilOptional, "_diagnoseUnexpectedNilOptional")
#undef FUNC_DECL