Merging r258611:
[oota-llvm.git] / tools / llvm-c-test / llvm-c-test.h
1 /*===-- llvm-c-test.h - tool for testing libLLVM and llvm-c API -----------===*\
2 |*                                                                            *|
3 |*                     The LLVM Compiler Infrastructure                       *|
4 |*                                                                            *|
5 |* This file is distributed under the University of Illinois Open Source      *|
6 |* License. See LICENSE.TXT for details.                                      *|
7 |*                                                                            *|
8 |*===----------------------------------------------------------------------===*|
9 |*                                                                            *|
10 |* Header file for llvm-c-test                                                *|
11 |*                                                                            *|
12 \*===----------------------------------------------------------------------===*/
13 #ifndef LLVM_C_TEST_H
14 #define LLVM_C_TEST_H
15
16 #include <stdbool.h>
17
18 // helpers.c
19 void tokenize_stdin(void (*cb)(char **tokens, int ntokens));
20
21 // module.c
22 int module_dump(bool Lazy, bool New);
23 int module_list_functions(void);
24 int module_list_globals(void);
25
26 // calc.c
27 int calc(void);
28
29 // disassemble.c
30 int disassemble(void);
31
32 // metadata.c
33 int add_named_metadata_operand(void);
34 int set_metadata(void);
35
36 // object.c
37 int object_list_sections(void);
38 int object_list_symbols(void);
39
40 // targets.c
41 int targets_list(void);
42
43 #endif