ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
with_gc
|
Last change
on this file since c8ffe20b was 51b73452, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago |
|
initial commit
|
-
Property mode
set to
100644
|
|
File size:
708 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * This file is part of the Cforall project
|
|---|
| 3 | *
|
|---|
| 4 | * $Id: LinkageSpec.h,v 1.3 2003/01/29 14:55:08 rcbilson Exp $
|
|---|
| 5 | *
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef LINKAGESPEC_H
|
|---|
| 9 | #define LINKAGESPEC_H
|
|---|
| 10 |
|
|---|
| 11 | #include <string>
|
|---|
| 12 |
|
|---|
| 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 | };
|
|---|
| 23 |
|
|---|
| 24 | static Type fromString( const std::string& );
|
|---|
| 25 | static std::string toString( Type );
|
|---|
| 26 |
|
|---|
| 27 | static bool isDecoratable( Type );
|
|---|
| 28 | static bool isGeneratable( Type );
|
|---|
| 29 | static bool isOverloadable( Type );
|
|---|
| 30 | static bool isBuiltin( Type );
|
|---|
| 31 | };
|
|---|
| 32 |
|
|---|
| 33 | #endif /* #ifndef LINKAGESPEC_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.