Changeset 3848e0e for translator/Parser/LinkageSpec.h
- Timestamp:
- Dec 3, 2014, 3:08:38 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- d9a0e76
- Parents:
- 42dcae7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/Parser/LinkageSpec.h
r42dcae7 r3848e0e 1 /*2 * This file is part of the Cforall project3 *4 * $Id: LinkageSpec.h,v 1.3 2003/01/29 14:55:08 rcbilson Exp $5 *6 */7 8 1 #ifndef LINKAGESPEC_H 9 2 #define LINKAGESPEC_H … … 11 4 #include <string> 12 5 13 struct LinkageSpec 14 { 15 enum Type 16 { 17 Intrinsic, // C built-in defined in prelude 18 Cforall, // ordinary 19 C, // not overloadable, not mangled 20 AutoGen, // built by translator (struct assignment) 21 Compiler // gcc internal 22 }; 6 struct LinkageSpec { 7 enum Type { 8 Intrinsic, // C built-in defined in prelude 9 Cforall, // ordinary 10 C, // not overloadable, not mangled 11 AutoGen, // built by translator (struct assignment) 12 Compiler // gcc internal 13 }; 23 14 24 static Type fromString( const std::string& );25 static std::string toString( Type );15 static Type fromString( const std::string & ); 16 static std::string toString( Type ); 26 17 27 static bool isDecoratable( Type );28 static bool isGeneratable( Type );29 static bool isOverloadable( Type );30 static bool isBuiltin( Type );18 static bool isDecoratable( Type ); 19 static bool isGeneratable( Type ); 20 static bool isOverloadable( Type ); 21 static bool isBuiltin( Type ); 31 22 }; 32 23 33 #endif / * #ifndef LINKAGESPEC_H */24 #endif // LINKAGESPEC_H
Note: See TracChangeset
for help on using the changeset viewer.