summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-c-test/llvm-c-test.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-c-test/llvm-c-test.h')
-rw-r--r--llvm/tools/llvm-c-test/llvm-c-test.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/tools/llvm-c-test/llvm-c-test.h b/llvm/tools/llvm-c-test/llvm-c-test.h
index 7929fc4d19b..72f3ccb44ab 100644
--- a/llvm/tools/llvm-c-test/llvm-c-test.h
+++ b/llvm/tools/llvm-c-test/llvm-c-test.h
@@ -14,11 +14,17 @@
#define LLVM_C_TEST_H
#include <stdbool.h>
+#include "llvm-c/Core.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
// helpers.c
void tokenize_stdin(void (*cb)(char **tokens, int ntokens));
// module.c
+LLVMModuleRef load_module(bool Lazy, bool New);
int module_dump(bool Lazy, bool New);
int module_list_functions(void);
int module_list_globals(void);
@@ -40,4 +46,11 @@ int object_list_symbols(void);
// targets.c
int targets_list(void);
+// echo.c
+int echo(void);
+
+#ifdef __cplusplus
+}
+#endif /* !defined(__cplusplus) */
+
#endif
OpenPOWER on IntegriCloud