search for: haserror

Displaying 17 results from an estimated 17 matches for "haserror".

Did you mean: has_error
2012 Nov 06
0
[LLVMdev] [PATCH] basic reading reloc visitor for x86_64 ELF
On Mon, Nov 5, 2012 at 5:17 PM, Eric Christopher <echristo at gmail.com> wrote: > For llvm-dwarfdump we need to handle relocations inside the debug info > sections in order to successfully dump the dwarf info including strings. > Nick sent out a partial patch that did this not too long ago and I've taken > it and gone in a bit of a different direction, but kept the same basic
2004 Nov 23
0
[OT] *nix Server/Windows Client Tips and tricks
...=yoursophosuser SMBPASS=yoursophospass MAILTO=root MOUNTPOINT=/mnt/sophoslogs # your log location may differ. You'll have to add a bit of logic # if you've got older 9x (or other) clients. Mine are all XP or 2k LOGLOCATION=Program\ Files/Sophos\ Sweep\ for\ NT/Reports/Daily.REP HASVIRUS=0 HASERROR=0 HOSTCOUNT=0 HOSTCOUNTMOUNTED=0 # you can pipe the following grep line through one or more grep -v to get rid of # wins listings you know you don't need, like other linux boxes or # printers or whatnot. grep \#00 $WINSFILE | cut -d " " -f 1 | cut -d \# -f 1 | cut -d \" -f 2 &gt...
2015 May 29
9
[LLVMdev] Error handling in LLVMObject library
...dr = getSymbolAddress(Symbol).get(); and it would fail the assert if they are wrong. Cons: * need to change lots of old code, or live with two versions of functions * error handling boilerplate in regular code on call site is ugly: auto AddrOrErr = getSymbolAddress(Symbol); if (AddrOrErr.hasError()) return; // or continue, or whatever uint64_t Addr = AddrOrErr.get(); (can probably be improved with a macro) * adds extra overhead for cases when we're certain the result would be valid. On IRC discussion Lang suggested 3. Check the whole object file contents in constructor or va...
2019 Jan 07
2
Kaleidoscope tutorial: extern functions failing
...__anon_expr"); assert(ExprSymbol && "Function not found"); // cast to double-returning function double (*FP)() = (double (*)())(intptr_t)cantFail(ExprSymbol.getAddress()); fprintf(stderr, "Evaluated to %f\n", FP()); and some investigation with GDB reveals that the hasError flag of ExprSymbol.getAddress() is true, which is why the cantFail is failing. As to why that flag is set, I'm at a loss. I have run through GDB with both the sin and putchard examples, to try and see where they are diverging. I'm not totally sure, but I think the divergence might be happen...
2016 Jul 07
2
ObjectCache and getFunctionAddress issue
...nter (via its LoadedObjects list). ErrorOr<std::unique_ptr<object::ObjectFile>> LoadedObject = object::ObjectFile::createObjectFile(ObjectToLoad->getMemBufferRef()); std::unique_ptr<RuntimeDyld::LoadedObjectInfo> L = Dyld.loadObject(*LoadedObject.get()); if (Dyld.hasError()) report_fatal_error(Dyld.getErrorString()); after the generateCodeForModule call, the findExistingSymbol is invoked. For some reason it cannot find my symbol. My symbol exists in the Module that was used as input for generateCodeForModule. It uses the object cache and that code was valid an...
2012 Nov 06
2
[LLVMdev] [PATCH] basic reading reloc visitor for x86_64 ELF
For llvm-dwarfdump we need to handle relocations inside the debug info sections in order to successfully dump the dwarf info including strings. Nick sent out a partial patch that did this not too long ago and I've taken it and gone in a bit of a different direction, but kept the same basic architecture. In place of applying the relocations to the data we've read from disk I'm keeping
2017 Aug 22
5
[RFC] mir-canon: A new tool for canonicalizing MIR for cleaner diffing.
Patch for review. On Mon, Aug 21, 2017 at 11:45 PM Puyan Lotfi <puyan.lotfi.llvm at gmail.com> wrote: > Ping. > > Still working on preparing code for review. Will have a patch for review > ready in the coming days. > > PL > > On Tue, Aug 15, 2017 at 12:06 PM Puyan Lotfi <puyan.lotfi.llvm at gmail.com> > wrote: > >> Hi, >> >> >>
2015 May 30
1
[LLVMdev] Error handling in LLVMObject library
...); > and it would fail the assert if they are wrong. > > Cons: > * need to change lots of old code, or live with two versions of functions > * error handling boilerplate in regular code on call site is ugly: > auto AddrOrErr = getSymbolAddress(Symbol); > if (AddrOrErr.hasError()) > return; // or continue, or whatever > uint64_t Addr = AddrOrErr.get(); > (can probably be improved with a macro) > * adds extra overhead for cases when we're certain the result would be > valid. > > On IRC discussion Lang suggested > 3. Check the whole ob...
2015 Jun 01
2
[LLVMdev] Error handling in LLVMObject library
...); > and it would fail the assert if they are wrong. > > Cons: > * need to change lots of old code, or live with two versions of functions > * error handling boilerplate in regular code on call site is ugly: > auto AddrOrErr = getSymbolAddress(Symbol); > if (AddrOrErr.hasError()) > return; // or continue, or whatever > uint64_t Addr = AddrOrErr.get(); > (can probably be improved with a macro) > * adds extra overhead for cases when we're certain the result would be > valid. I think this is a strict improvement, and would not object to doing...
2015 Jun 02
2
[LLVMdev] Error handling in LLVMObject library
...;>> >>> Cons: >>> * need to change lots of old code, or live with two versions of >>> functions >>> * error handling boilerplate in regular code on call site is ugly: >>> auto AddrOrErr = getSymbolAddress(Symbol); >>> if (AddrOrErr.hasError()) >>> return; // or continue, or whatever >>> uint64_t Addr = AddrOrErr.get(); >>> (can probably be improved with a macro) >>> * adds extra overhead for cases when we're certain the result would be >>> valid. >>> >>> On...
2014 Mar 20
2
[LLVMdev] load bytecode from string for jiting problem
This segfault occuring only under valgrind, in shell way, and in gdb way i have Invalid bitcode signature simple_scev_dynamic_array: /home/willy/apollo/llvm/include/llvm/Support/ErrorOr.h:258: storage_type *llvm::ErrorOr<llvm::Module *>::getStorage() [T = llvm::Module *]: Assertion `!HasError && "Cannot get value when an error exists!"' failed. Command terminated by signal 6 this is the code I use: long jitter(void* info, skeleton_pair *skeletons, long skeleton_size, param_t params, long phi_state_size) { InitializeNativeTarget(); InitializeNativeTargetAsmPri...
2014 Mar 20
2
[LLVMdev] load bytecode from string for jiting problem
...n shell way, and in gdb way i have >> >> Invalid bitcode signature >> simple_scev_dynamic_array: >> /home/willy/apollo/llvm/include/llvm/Support/ErrorOr.h:258: storage_type >> *llvm::ErrorOr<llvm::Module *>::getStorage() [T = llvm::Module *]: >> Assertion `!HasError && "Cannot get value when an error exists!"' failed. >> Command terminated by signal 6 >> >> >> this is the code I use: >> >> >> long jitter(void* info, skeleton_pair *skeletons, long skeleton_size, >> param_t params, long phi_st...
2015 Jan 26
2
[LLVMdev] [llvm] r188726 - Adding PIC support for ELF on x86_64 platforms
...ate GOT entries for external symbols. + // The base class does nothing. ELF overrides this. + virtual void updateGOTEntries(StringRef Name, uint64_t Addr) {} + virtual ObjectImage *createObjectImage(ObjectBuffer *InputBuffer); public: RuntimeDyldImpl(RTDyldMemoryManager *mm) : MemMgr(mm), HasError(false) {} @@ -336,6 +351,8 @@ public: virtual bool isCompatibleFormat(const ObjectBuffer *Buffer) const = 0; virtual StringRef getEHFrameSection(); + + virtual void finalizeLoad() {} }; } // end namespace llvm _______________________________________________ llvm-commits mailing list ll...
2018 Mar 26
0
Interest in integrating a linux perf JITEventListener?
...ib/ExecutionEngine/MCJIT/MCJIT.cpp b/lib/ExecutionEngine/MCJIT/MCJIT.cpp > index ff8749fbfed..ebe475d9f0b 100644 > --- a/lib/ExecutionEngine/MCJIT/MCJIT.cpp > +++ b/lib/ExecutionEngine/MCJIT/MCJIT.cpp > @@ -222,8 +222,10 @@ void MCJIT::generateCodeForModule(Module *M) { > if (Dyld.hasError()) > report_fatal_error(Dyld.getErrorString()); > > - NotifyObjectEmitted(*LoadedObject.get(), *L); > - > + // Can't call notifiers yet as relocations have not yet been performed, and > + // memory hasn't been marked executable. > + PendingLoadedObjects.push_...
2016 Dec 29
1
Interest in integrating a linux perf JITEventListener?
Having something like this available in tree would definitely be useful. For simplicity, why don't we start with support for the second style? This is the long term useful one and would be a good starting point for getting the code in tree. Can you give a pointer to the patch so that I can assess the rough complexity? If it's simple enough, I'd be happy to help get it reviewed
2017 Feb 02
0
Interest in integrating a linux perf JITEventListener?
Hi, On 2016-12-29 13:17:50 -0800, Philip Reames wrote: > Having something like this available in tree would definitely be > useful. Cool. > For simplicity, why don't we start with support for the second style? This > is the long term useful one and would be a good starting point for getting > the code in tree. Works for me. > Can you give a pointer to the patch so that
2014 Mar 19
2
[LLVMdev] load bytecode from string for jiting problem
all of: ---- // cout << "lsr: " << lsr << "\n"; llvm::MemoryBuffer* mbjit = llvm::MemoryBuffer::getMemBufferCopy (sr); ------ string lsr = sr.str(); // cout << "lsr: " << lsr << "\n";