summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-c-test/main.c
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2017-11-01 22:18:52 +0000
committerwhitequark <whitequark@whitequark.org>2017-11-01 22:18:52 +0000
commit789164d4262b4132e074fadd6e1df8328618e30e (patch)
tree264e0442948ef2c759aeef7d9d864e757fdbbab1 /llvm/tools/llvm-c-test/main.c
parent3837322a6b757230368cec94cf2766734983df72 (diff)
downloadbcm5719-llvm-789164d4262b4132e074fadd6e1df8328618e30e.tar.gz
bcm5719-llvm-789164d4262b4132e074fadd6e1df8328618e30e.zip
[LLVM-C] Expose functions to create debug locations via DIBuilder.
These include: * Several functions for creating an LLVMDIBuilder, * LLVMDIBuilderCreateCompileUnit, * LLVMDIBuilderCreateFile, * LLVMDIBuilderCreateDebugLocation. Patch by Harlan Haskins. Differential Revision: https://reviews.llvm.org/D32368 llvm-svn: 317135
Diffstat (limited to 'llvm/tools/llvm-c-test/main.c')
-rw-r--r--llvm/tools/llvm-c-test/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/tools/llvm-c-test/main.c b/llvm/tools/llvm-c-test/main.c
index 9bc0c96c3d6..5130783d6a6 100644
--- a/llvm/tools/llvm-c-test/main.c
+++ b/llvm/tools/llvm-c-test/main.c
@@ -55,6 +55,9 @@ static void print_usage(void) {
fprintf(stderr, " * --test-diagnostic-handler\n");
fprintf(stderr,
" Read bitcode file form stdin with a diagnostic handler set\n\n");
+ fprintf(stderr, " * --test-dibuilder\n");
+ fprintf(stderr,
+ " Run tests for the DIBuilder C API - print generated module\n\n");
}
int main(int argc, char **argv) {
@@ -96,6 +99,8 @@ int main(int argc, char **argv) {
return llvm_echo();
} else if (argc == 2 && !strcmp(argv[1], "--test-diagnostic-handler")) {
return llvm_test_diagnostic_handler();
+ } else if (argc == 2 && !strcmp(argv[1], "--test-dibuilder")) {
+ return llvm_test_dibuilder();
} else {
print_usage();
}
OpenPOWER on IntegriCloud