llvm.org GIT mirror llvm / 643de68
Fix build with -DLLVM_USE_INTEL_JITEVENTS=ON -DLLVM_USE_OPROFILE=ON. Is anyone using those? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241372 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 5 years ago
3 changed file(s) with 14 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
117117 if (!Name)
118118 continue;
119119
120 uint64_t Addr;
121 if (Sym.getAddress(Addr))
120 ErrorOr AddrOrErr = Sym.getAddress();
121 if (AddrOrErr.getError())
122122 continue;
123 uint64_t Addr = *AddrOrErr;
123124 uint64_t Size = P.second;
124125
125126 // Record this address in a local vector
8888 for (const std::pair &P : computeSymbolSizes(DebugObj)) {
8989 SymbolRef Sym = P.first;
9090 if (Sym.getType() == SymbolRef::ST_Function) {
91 StringRef Name;
92 uint64_t Addr;
93 if (Sym.getName(Name))
91 ErrorOr NameOrErr = Sym.getName();
92 if (NameOrErr.getError())
9493 continue;
95 if (Sym.getAddress(Addr))
94 StringRef Name = *NameOrErr;
95 ErrorOr AddrOrErr = Sym.getAddress();
96 if (AddrOrErr.getError())
9697 continue;
98 uint64_t Addr = *AddrOrErr;
9799 uint64_t Size = P.second;
98100
99101 if (Wrapper->op_write_native_code(Name.data(), Addr, (void*)Addr, Size)
125127 E = DebugObj.symbol_end();
126128 I != E; ++I) {
127129 if (I->getType() == SymbolRef::ST_Function) {
128 uint64_t Addr;
129 if (I->getAddress(Addr)) continue;
130 ErrorOr AddrOrErr = I->getAddress();
131 if (AddrOrErr.getError())
132 continue;
133 uint64_t Addr = *AddrOrErr;
130134
131135 if (Wrapper->op_unload_native_code(Addr) == -1) {
132136 DEBUG(dbgs()
55 set(LLVM_LINK_COMPONENTS
66 asmparser
77 bitreader
8 debuginfo
8 DebugInfoDWARF
99 inteljitevents
1010 interpreter
1111 irreader