Changeset 79970ed for src/Parser/LinkageSpec.cc
- Timestamp:
- Aug 24, 2016, 12:36:33 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 0555f4b
- Parents:
- f87408e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/LinkageSpec.cc
rf87408e r79970ed 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // LinkageSpec.cc -- 8 // 7 // LinkageSpec.cc -- 8 // 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Sat May 16 13:22:09 2015 … … 12 12 // Last Modified On : Sun Aug 21 12:32:53 2016 13 13 // Update Count : 17 14 // 14 // 15 15 16 16 #include <string> … … 32 32 33 33 std::string LinkageSpec::toString( LinkageSpec::Spec linkage ) { 34 assert( linkage >= 0 && linkage < LinkageSpec::NoOfSpecs ); 34 35 static const char *linkageKinds[LinkageSpec::NoOfSpecs] = { 35 36 "intrinsic", "Cforall", "C", "automatically generated", "compiler built-in", … … 39 40 40 41 bool LinkageSpec::isDecoratable( Spec spec ) { 42 assert( spec >= 0 && spec < LinkageSpec::NoOfSpecs ); 41 43 static bool decoratable[LinkageSpec::NoOfSpecs] = { 42 44 // Intrinsic, Cforall, C, AutoGen, Compiler 43 true, true, false, true, false, 45 true, true, false, true, false, 44 46 }; 45 47 return decoratable[spec]; … … 47 49 48 50 bool LinkageSpec::isGeneratable( Spec spec ) { 51 assert( spec >= 0 && spec < LinkageSpec::NoOfSpecs ); 49 52 static bool generatable[LinkageSpec::NoOfSpecs] = { 50 53 // Intrinsic, Cforall, C, AutoGen, Compiler 51 true, true, true, true, false, 54 true, true, true, true, false, 52 55 }; 53 56 return generatable[spec]; … … 55 58 56 59 bool LinkageSpec::isOverridable( Spec spec ) { 60 assert( spec >= 0 && spec < LinkageSpec::NoOfSpecs ); 57 61 static bool overridable[LinkageSpec::NoOfSpecs] = { 58 62 // Intrinsic, Cforall, C, AutoGen, Compiler 59 true, false, false, true, false, 63 true, false, false, true, false, 60 64 }; 61 65 return overridable[spec]; … … 63 67 64 68 bool LinkageSpec::isBuiltin( Spec spec ) { 69 assert( spec >= 0 && spec < LinkageSpec::NoOfSpecs ); 65 70 static bool builtin[LinkageSpec::NoOfSpecs] = { 66 71 // Intrinsic, Cforall, C, AutoGen, Compiler 67 true, false, false, false, true, 72 true, false, false, false, true, 68 73 }; 69 74 return builtin[spec];
Note: See TracChangeset
for help on using the changeset viewer.