Displaying 6 results from an estimated 6 matches for "coveragemappingreader".
2019 Jan 23
3
答复: How to add new arch for llvm-cov show?
Hi vedant,
The program didn't pass the checking "OF->getArch() != Triple(Arch).getArch()" loadBinaryFormat in CoverageMappingReader.cpp and returned an error. It's because "OF->getArch()" returned null and "Triple(Arch).getArch()" returned XXXX(name of my arch).
The returned value of " OF->getArch()" is decided by " EF.getHeader()->e_machine" but I found "e_machine&q...
2019 Jan 24
2
答复: 答复: How to add new arch for llvm-cov show?
...ols/obj2yaml/elf2yaml.cpp(GDB stopped only at the former one when using x86_64 llvm-cov so I thought it was MC provide this e_machine information to compiler).
2. New error was “Failed to load coverage: No coverage data found” since the compiler cannot get NamesSection(at loadBinaryFormat in CoverageMappingReader.cpp). I thought it was my ldscript problem because I put __llvm_prf_names, __llvm_prf_cnts, __llvm_prf_data and __llvm_prf_vnds inside .rodata section. Compiler checked .rodata but not things inside .rodata. What’s the right position to put these 4 __llvm_prf_* sections?
Best,
Ruobin.
发件人: vsk at...
2019 Jan 25
2
答复: How to add new arch for llvm-cov show?
...d the ELF file reader?
$ git grep -iE "\<e_?machine\>” lib
…
lib/Object/ELF.cpp: return getDynamicTagAsString(getHeader()->e_machine, Type);
2. New error was “Failed to load coverage: No coverage data found” since the compiler cannot get NamesSection(at loadBinaryFormat in CoverageMappingReader.cpp). I thought it was my ldscript problem because I put __llvm_prf_names, __llvm_prf_cnts, __llvm_prf_data and __llvm_prf_vnds inside .rodata section. Compiler checked .rodata but not things inside .rodata. What’s the right position to put these 4 __llvm_prf_* sections?
I’m not sure what changed,...
2019 Jan 22
2
How to add new arch for llvm-cov show?
Hi all,
I'm trying to support llvm-cov for a new architecture and I have successfully built compiler-rt for my arch. Following steps shown in https://clang.llvm.org/docs/SourceBasedCodeCoverage.html , I encountered an error for the last step(step of llvm-cov show).
The command line was (supposed my arch is XXXX)
"llvm-cov show -arch=XXXX ./foo -instr-profile=foo.profdata"
and the
2015 Feb 10
3
[LLVMdev] Coverage mapping issue: Malformed profile data
...1|#include <stdio.h>
| 2|
0| 3|int foo() { return 42; }
1| 4|int main() {
1| 5| return 0;
1| 6|}
As far I can understand issue somehow related to unused static functions.
Also, as I can track down the problem raised because of
lib/ProfileData/CoverageMappingReader.cpp (SectionData::get) expects
that function's names located inside __llvm_prf_names section but it
not true in case of test1.c, instead some function names located
inside .rodata section.
Is it known issue?
any hints, how to avoid or workaround it?
--
Be happy,
Best regards,
Dmitry Volynts...
2015 Jul 29
1
[LLVMdev] Error when i am using command make -j4 command in cygwin to compile safecode
...d
llvm[2]: Compiling MachineBlockPlacement.cpp for Release+Asserts build
llvm[3]: Compiling PDBSymbolFuncDebugEnd.cpp for Release+Asserts build
llvm[2]: Compiling MCObjectWriter.cpp for Release+Asserts build
llvm[3]: Compiling PDBSymbolFuncDebugStart.cpp for Release+Asserts build
llvm[2]: Compiling CoverageMappingReader.cpp for Release+Asserts build
llvm[3]: Compiling PDBSymbolLabel.cpp for Release+Asserts build
llvm[2]: Compiling MCRegisterInfo.cpp for Release+Asserts build
llvm[3]: Compiling PDBSymbolPublicSymbol.cpp for Release+Asserts build
llvm[2]: Compiling MCSchedule.cpp for Release+Asserts build
llvm[2]: C...