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 643a2e1 was 51b73452, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago |
|
initial commit
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Rev | Line | |
|---|
| [51b73452] | 1 | /*
|
|---|
| 2 | * This file is part of the Cforall project
|
|---|
| 3 | *
|
|---|
| 4 | * $Id: FixFunction.h,v 1.3 2005/08/29 20:14:17 rcbilson Exp $
|
|---|
| 5 | *
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef SYMTAB_FIXFUNCTION_H
|
|---|
| 9 | #define SYMTAB_FIXFUNCTION_H
|
|---|
| 10 |
|
|---|
| 11 | #include "SynTree/Mutator.h"
|
|---|
| 12 |
|
|---|
| 13 | namespace SymTab {
|
|---|
| 14 |
|
|---|
| 15 | class FixFunction : public Mutator
|
|---|
| 16 | {
|
|---|
| 17 | typedef Mutator Parent;
|
|---|
| 18 |
|
|---|
| 19 | public:
|
|---|
| 20 | FixFunction();
|
|---|
| 21 |
|
|---|
| 22 | bool get_isVoid() const { return isVoid; }
|
|---|
| 23 | void set_isVoid( bool newValue ) { isVoid = newValue; }
|
|---|
| 24 |
|
|---|
| 25 | private:
|
|---|
| 26 | virtual DeclarationWithType* mutate(FunctionDecl *functionDecl);
|
|---|
| 27 |
|
|---|
| 28 | virtual Type* mutate(VoidType *voidType);
|
|---|
| 29 | virtual Type* mutate(BasicType *basicType);
|
|---|
| 30 | virtual Type* mutate(PointerType *pointerType);
|
|---|
| 31 | virtual Type* mutate(ArrayType *arrayType);
|
|---|
| 32 | virtual Type* mutate(StructInstType *aggregateUseType);
|
|---|
| 33 | virtual Type* mutate(UnionInstType *aggregateUseType);
|
|---|
| 34 | virtual Type* mutate(EnumInstType *aggregateUseType);
|
|---|
| 35 | virtual Type* mutate(ContextInstType *aggregateUseType);
|
|---|
| 36 | virtual Type* mutate(TypeInstType *aggregateUseType);
|
|---|
| 37 | virtual Type* mutate(TupleType *tupleType);
|
|---|
| 38 |
|
|---|
| 39 | bool isVoid;
|
|---|
| 40 | };
|
|---|
| 41 |
|
|---|
| 42 | } // namespace SymTab
|
|---|
| 43 |
|
|---|
| 44 | #endif /* #ifndef SYMTAB_FIXFUNCTION_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.