aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-c-test
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2020-01-14 13:37:04 -0800
committerAdrian Prantl <aprantl@apple.com>2020-01-17 09:36:48 -0800
commit12e479475a896f664fb721f98c2d6805185ac352 (patch)
treee765d8cdcdf28a6368adcaae3b9b46b7cdc117a6 /llvm/tools/llvm-c-test
parent859e379ffbbb40302926940b8c87fb7a99931612 (diff)
downloadllvm-12e479475a896f664fb721f98c2d6805185ac352.zip
llvm-12e479475a896f664fb721f98c2d6805185ac352.tar.gz
llvm-12e479475a896f664fb721f98c2d6805185ac352.tar.bz2
Rename DW_AT_LLVM_isysroot to DW_AT_LLVM_sysroot
This is a purely cosmetic change that is NFC in terms of the binary output. I bugs me that I called the attribute DW_AT_LLVM_isysroot since the "i" is an artifact of GCC command line option syntax (-isysroot is in the category of -i options) and doesn't carry any useful information otherwise. This attribute only appears in Clang module debug info. Differential Revision: https://reviews.llvm.org/D71722
Diffstat (limited to 'llvm/tools/llvm-c-test')
-rw-r--r--llvm/tools/llvm-c-test/debuginfo.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/tools/llvm-c-test/debuginfo.c b/llvm/tools/llvm-c-test/debuginfo.c
index b5080f0..8102e9a 100644
--- a/llvm/tools/llvm-c-test/debuginfo.c
+++ b/llvm/tools/llvm-c-test/debuginfo.c
@@ -36,23 +36,21 @@ int llvm_test_dibuilder(void) {
LLVMMetadataRef File = LLVMDIBuilderCreateFile(DIB, Filename,
strlen(Filename), ".", 1);
- LLVMMetadataRef CompileUnit = LLVMDIBuilderCreateCompileUnit(DIB,
- LLVMDWARFSourceLanguageC, File, "llvm-c-test", 11, 0, NULL, 0, 0,
- NULL, 0, LLVMDWARFEmissionFull, 0, 0, 0);
+ LLVMMetadataRef CompileUnit = LLVMDIBuilderCreateCompileUnit(
+ DIB, LLVMDWARFSourceLanguageC, File, "llvm-c-test", 11, 0, NULL, 0, 0,
+ NULL, 0, LLVMDWARFEmissionFull, 0, 0, 0, "/", 1);
LLVMMetadataRef Module =
LLVMDIBuilderCreateModule(DIB, CompileUnit,
"llvm-c-test", 11,
"", 0,
- "/test/include/llvm-c-test.h", 27,
- "", 0);
+ "/test/include/llvm-c-test.h", 27);
LLVMMetadataRef OtherModule =
LLVMDIBuilderCreateModule(DIB, CompileUnit,
"llvm-c-test-import", 18,
"", 0,
- "/test/include/llvm-c-test-import.h", 34,
- "", 0);
+ "/test/include/llvm-c-test-import.h", 34);
LLVMMetadataRef ImportedModule =
LLVMDIBuilderCreateImportedModuleFromModule(DIB, Module, OtherModule,
File, 42);