1//===-- CodeViewLanguages.def - All CodeView languages ----------*- C++ -*-===// 2// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6// 7//===----------------------------------------------------------------------===// 8// 9// These values correspond to the CV_CFL_LANG enumeration in the Microsoft 10// Debug Interface Access SDK, and are documented here: 11// https://learn.microsoft.com/en-us/visualstudio/debugger/debug-interface-access/cv-cfl-lang 12// This should match the constants there. 13// 14//===----------------------------------------------------------------------===// 15 16#ifndef CV_LANGUAGE 17#define CV_LANGUAGE(NAME, ID) 18#endif 19 20CV_LANGUAGE(C, 0x00) 21CV_LANGUAGE(Cpp, 0x01) 22CV_LANGUAGE(Fortran, 0x02) 23CV_LANGUAGE(Masm, 0x03) 24CV_LANGUAGE(Pascal, 0x04) 25CV_LANGUAGE(Basic, 0x05) 26CV_LANGUAGE(Cobol, 0x06) 27CV_LANGUAGE(Link, 0x07) 28CV_LANGUAGE(Cvtres, 0x08) 29CV_LANGUAGE(Cvtpgd, 0x09) 30CV_LANGUAGE(CSharp, 0x0a) 31CV_LANGUAGE(VB, 0x0b) 32CV_LANGUAGE(ILAsm, 0x0c) 33CV_LANGUAGE(Java, 0x0d) 34CV_LANGUAGE(JScript, 0x0e) 35CV_LANGUAGE(MSIL, 0x0f) 36CV_LANGUAGE(HLSL, 0x10) 37CV_LANGUAGE(ObjC, 0x11) 38CV_LANGUAGE(ObjCpp, 0x12) 39CV_LANGUAGE(Swift, 0x13) 40CV_LANGUAGE(AliasObj, 0x14) 41CV_LANGUAGE(Rust, 0x15) 42CV_LANGUAGE(Go, 0x16) 43 44// The DMD compiler emits 'D' for the CV source language. Microsoft does not 45// have an enumerator for it yet. 46CV_LANGUAGE(D, 'D') 47// The Swift compiler used to emit 'S' for the CV source language, but 48// current versions emit the enumerator defined above. 49CV_LANGUAGE(OldSwift, 'S') 50 51#undef CV_LANGUAGE 52