Types.def revision be1cc3eec682ca73361edb4109a7969452d3dbeb
1//===--- Types.def - Driver Type info ---------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9// 10// This file defines the driver type information. Users of this file 11// must define the TYPE macro to make use of this information. 12// 13//===----------------------------------------------------------------------===// 14 15#ifndef TYPE 16#error "Define TYPE prior to including this file!" 17#endif 18 19// TYPE(NAME, ID, PP_TYPE, TEMP_SUFFIX, FLAGS) 20 21// The first value is the type name as a string; for types which can 22// be user specified this should be the equivalent -x option. 23 24// The second value is the type id, which will result in a 25// clang::driver::types::TY_XX enum constant. 26 27// The third value is that id of the type for preprocessed inputs of 28// this type, or INVALID if this type is not preprocessed. 29 30// The fourth value is the suffix to use when creating temporary files 31// of this type, or null if unspecified. 32 33// The fifth value is a string containt option flags. Valid values: 34// a - The type should only be assembled. 35// p - The type should only be precompiled. 36// u - The type can be user specified (with -x). 37// A - The type's temporary suffix should be appended when generating 38// outputs of this type. 39 40 41// C family source language (with and without preprocessing). 42TYPE("cpp-output", PP_C, INVALID, "i", "u") 43TYPE("c", C, PP_C, 0, "u") 44TYPE("cl", CL, PP_C, 0, "u") 45TYPE("objective-c-cpp-output", PP_ObjC, INVALID, "mi", "u") 46TYPE("objective-c", ObjC, PP_ObjC, 0, "u") 47TYPE("c++-cpp-output", PP_CXX, INVALID, "ii", "u") 48TYPE("c++", CXX, PP_CXX, 0, "u") 49TYPE("objective-c++-cpp-output", PP_ObjCXX, INVALID, "mii", "u") 50TYPE("objective-c++", ObjCXX, PP_ObjCXX, 0, "u") 51 52// C family input files to precompile. 53TYPE("c-header-cpp-output", PP_CHeader, INVALID, "i", "p") 54TYPE("c-header", CHeader, PP_CHeader, 0, "pu") 55TYPE("objective-c-header-cpp-output", PP_ObjCHeader, INVALID, "mi", "p") 56TYPE("objective-c-header", ObjCHeader, PP_ObjCHeader, 0, "pu") 57TYPE("c++-header-cpp-output", PP_CXXHeader, INVALID, "ii", "p") 58TYPE("c++-header", CXXHeader, PP_CXXHeader, 0, "pu") 59TYPE("objective-c++-header-cpp-output", PP_ObjCXXHeader, INVALID, "mii", "p") 60TYPE("objective-c++-header", ObjCXXHeader, PP_ObjCXXHeader, 0, "pu") 61 62// Other languages. 63TYPE("ada", Ada, INVALID, 0, "u") 64TYPE("assembler", PP_Asm, INVALID, "s", "au") 65TYPE("assembler-with-cpp", Asm, PP_Asm, 0, "au") 66TYPE("f95", PP_Fortran, INVALID, 0, "u") 67TYPE("f95-cpp-input", Fortran, PP_Fortran, 0, "u") 68TYPE("java", Java, INVALID, 0, "u") 69 70// Misc. 71TYPE("ast", AST, INVALID, "ast", "u") 72TYPE("llvm-asm", LLVMAsm, INVALID, "s", "") 73TYPE("llvm-bc", LLVMBC, INVALID, "o", "") 74TYPE("plist", Plist, INVALID, "plist", "") 75TYPE("rewritten-objc", RewrittenObjC,INVALID, "cpp", "") 76TYPE("precompiled-header", PCH, INVALID, "gch", "A") 77TYPE("object", Object, INVALID, "o", "") 78TYPE("treelang", Treelang, INVALID, 0, "u") 79TYPE("image", Image, INVALID, "out", "") 80TYPE("dSYM", dSYM, INVALID, "dSYM", "") 81TYPE("dependencies", Dependencies, INVALID, "d", "") 82TYPE("none", Nothing, INVALID, 0, "u") 83