Home
last modified time | relevance | path

Searched refs:ErrorOr (Results 1 – 25 of 90) sorted by relevance

1234

/external/llvm/unittests/Support/
DErrorOrTest.cpp19 ErrorOr<int> t1() {return 1;} in t1()
20 ErrorOr<int> t2() { return errc::invalid_argument; } in t2()
22 TEST(ErrorOr, SimpleValue) { in TEST() argument
23 ErrorOr<int> a = t1(); in TEST()
29 ErrorOr<int> b = a; in TEST()
40 ErrorOr<std::unique_ptr<int> > t3() { in t3()
44 TEST(ErrorOr, Types) { in TEST() argument
46 ErrorOr<int&> a(x); in TEST()
57 TEST(ErrorOr, Covariant) { in TEST() argument
58 ErrorOr<B*> b(ErrorOr<D*>(nullptr)); in TEST()
[all …]
/external/llvm/include/llvm/Support/
DErrorOr.h82 class ErrorOr {
83 template <class OtherT> friend class ErrorOr; variable
97 ErrorOr(E ErrorCode,
105 ErrorOr(std::error_code EC) : HasError(true) { in ErrorOr() function
109 ErrorOr(T Val) : HasError(false) { in ErrorOr() function
113 ErrorOr(const ErrorOr &Other) { in ErrorOr() function
118 ErrorOr(const ErrorOr<OtherT> &Other) { in ErrorOr() function
122 ErrorOr &operator =(const ErrorOr &Other) {
128 ErrorOr &operator =(const ErrorOr<OtherT> &Other) {
133 ErrorOr(ErrorOr &&Other) { in ErrorOr() function
[all …]
DMemoryBuffer.h72 static ErrorOr<std::unique_ptr<MemoryBuffer>>
83 static ErrorOr<std::unique_ptr<MemoryBuffer>>
93 static ErrorOr<std::unique_ptr<MemoryBuffer>>
123 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN();
127 static ErrorOr<std::unique_ptr<MemoryBuffer>>
/external/llvm/tools/obj2yaml/
Delf2yaml.cpp37 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr);
38 ErrorOr<ELFYAML::RelocationSection *> dumpRelaSection(const Elf_Shdr *Shdr);
39 ErrorOr<ELFYAML::RawContentSection *>
44 ErrorOr<ELFYAML::Object *> dump();
54 ErrorOr<ELFYAML::Object *> ELFDumper<ELFT>::dump() { in dump()
76 ErrorOr<ELFYAML::RelocationSection *> S = dumpRelaSection(&Sec); in dump()
83 ErrorOr<ELFYAML::RelocationSection *> S = dumpRelSection(&Sec); in dump()
91 ErrorOr<ELFYAML::RawContentSection *> S = dumpContentSection(&Sec); in dump()
138 ErrorOr<StringRef> NameOrErr = Obj.getSymbolName(Sym); in dumpSymbol()
168 ErrorOr<StringRef> NameOrErr = in dumpRelocation()
[all …]
/external/llvm/lib/Support/
DMemoryBuffer.cpp155 ErrorOr<std::unique_ptr<MemoryBuffer>>
208 static ErrorOr<std::unique_ptr<MemoryBuffer>>
229 static ErrorOr<std::unique_ptr<MemoryBuffer>>
233 ErrorOr<std::unique_ptr<MemoryBuffer>>
243 static ErrorOr<std::unique_ptr<MemoryBuffer>>
248 static ErrorOr<std::unique_ptr<MemoryBuffer>>
256 ErrorOr<std::unique_ptr<MemoryBuffer>> Ret = in getFileAux()
311 static ErrorOr<std::unique_ptr<MemoryBuffer>>
389 ErrorOr<std::unique_ptr<MemoryBuffer>>
396 ErrorOr<std::unique_ptr<MemoryBuffer>>
[all …]
/external/llvm/include/llvm/Object/
DArchive.h75 ErrorOr<StringRef> getName() const;
92 ErrorOr<std::unique_ptr<MemoryBuffer>>
95 ErrorOr<std::unique_ptr<Binary>>
141 ErrorOr<child_iterator> getMember() const;
168 static ErrorOr<Archive *> create(std::unique_ptr<MemoryBuffer> Source);
DMachOUniversal.h61 ErrorOr<std::unique_ptr<ObjectFile>> getAsObjectFile() const;
89 static ErrorOr<MachOUniversalBinary *>
106 ErrorOr<std::unique_ptr<ObjectFile>>
DSymbolicFile.h145 static ErrorOr<SymbolicFile *>
149 static ErrorOr<SymbolicFile *>
153 static ErrorOr<SymbolicFile *> createSymbolicFile(StringRef ObjectPath);
DBinary.h131 ErrorOr<Binary *> createBinary(std::unique_ptr<MemoryBuffer> &Source,
134 ErrorOr<Binary *> createBinary(StringRef Path);
DELF.h307 ErrorOr<StringRef> getSymbolVersion(const Elf_Shdr *section,
410 ErrorOr<StringRef> getSymbolName(Elf_Sym_Iter Sym) const;
418 ErrorOr<StringRef> getSymbolName(const Elf_Shdr *SymTab,
420 ErrorOr<StringRef> getSectionName(const Elf_Shdr *Section) const;
422 ErrorOr<ArrayRef<uint8_t> > getSectionContents(const Elf_Shdr *Sec) const;
538 ErrorOr<ArrayRef<uint8_t> >
889 ErrorOr<StringRef> ELFFile<ELFT>::getSymbolName(Elf_Sym_Iter Sym) const { in getSymbolName()
899 ErrorOr<StringRef> ELFFile<ELFT>::getSymbolName(const Elf_Shdr *Section, in getSymbolName()
914 ErrorOr<StringRef>
922 ErrorOr<StringRef> ELFFile<ELFT>::getSymbolVersion(const Elf_Shdr *section, in getSymbolVersion()
[all …]
/external/llvm/lib/IRReader/
DIRReader.cpp37 ErrorOr<Module *> ModuleOrErr = getLazyBitcodeModule(Buffer, Context); in getLazyIRModule()
54 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getLazyIRFileModule()
71 ErrorOr<Module *> ModuleOrErr = parseBitcodeFile(Buffer, Context); in ParseIR()
89 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in ParseIRFile()
/external/clang/lib/Basic/
DVirtualFileSystem.cpp98 ErrorOr<Status> status() override;
110 ErrorOr<Status> RealFile::status() { in status()
129 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in getBuffer()
163 ErrorOr<Status> status(const Twine &Path) override;
170 ErrorOr<Status> RealFileSystem::status(const Twine &Path) { in status()
245 ErrorOr<Status> OverlayFileSystem::status(const Twine &Path) { in status()
248 ErrorOr<Status> Status = (*I)->status(Path); in status()
502 ErrorOr<Entry *> lookupPath(const Twine &Path);
506 ErrorOr<Entry *> lookupPath(sys::path::const_iterator Start,
510 ErrorOr<Status> status(const Twine &Path, Entry *E);
[all …]
DFileSystemStatCache.cpp66 llvm::ErrorOr<vfs::Status> Status = FS.status(Path); in get()
91 llvm::ErrorOr<vfs::Status> Status = OwnedFile->status(); in get()
/external/llvm/lib/Object/
DArchive.cpp118 ErrorOr<StringRef> Archive::Child::getName() const { in getName()
162 ErrorOr<std::unique_ptr<MemoryBuffer>>
164 ErrorOr<StringRef> NameOrErr = getName(); in getMemoryBuffer()
178 ErrorOr<std::unique_ptr<Binary>>
181 ErrorOr<std::unique_ptr<MemoryBuffer>> BuffOrErr = getMemoryBuffer(); in getAsBinary()
189 ErrorOr<Archive *> Archive::create(std::unique_ptr<MemoryBuffer> Source) { in create()
248 ErrorOr<StringRef> NameOrErr = i->getName(); in Archive()
334 ErrorOr<Archive::child_iterator> Archive::Symbol::getMember() const { in getMember()
494 ErrorOr<Archive::child_iterator> ResultOrErr = bs->getMember(); in findSym()
DBinary.cpp41 ErrorOr<Binary *> object::createBinary(std::unique_ptr<MemoryBuffer> &Buffer, in createBinary()
77 ErrorOr<Binary *> object::createBinary(StringRef Path) { in createBinary()
78 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createBinary()
DObjectFile.cpp48 ErrorOr<ObjectFile *>
85 ErrorOr<ObjectFile *> ObjectFile::createObjectFile(StringRef ObjectPath) { in createObjectFile()
86 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createObjectFile()
DMachOUniversal.cpp70 ErrorOr<std::unique_ptr<ObjectFile>>
91 ErrorOr<Archive *> Obj = Archive::create(std::move(ObjBuffer)); in getAsArchive()
102 ErrorOr<MachOUniversalBinary *>
145 ErrorOr<std::unique_ptr<ObjectFile>>
/external/clang/unittests/Basic/
DVirtualFileSystemTest.cpp35 ErrorOr<vfs::Status> status(const Twine &Path) { in status()
122 ErrorOr<vfs::Status> Status((std::error_code())); in TEST()
155 ErrorOr<vfs::Status> Status2 = D->status("/foo"); in TEST()
162 ErrorOr<vfs::Status> Status((std::error_code())); in TEST()
172 ErrorOr<vfs::Status> Status2((std::error_code())); in TEST()
187 ErrorOr<vfs::Status> Status1((std::error_code())), in TEST()
228 ErrorOr<vfs::Status> Status1 = Lower->status("/lower-only"); in TEST()
230 ErrorOr<vfs::Status> Status2 = O->status("/lower-only"); in TEST()
249 ErrorOr<vfs::Status> Status((std::error_code())); in TEST()
596 ErrorOr<vfs::Status> S = O->status("//root/file1"); in TEST_F()
[all …]
/external/llvm/tools/llvm-readobj/
DARMWinEHPrinter.h84 ErrorOr<object::SectionRef>
87 ErrorOr<object::SymbolRef>
91 ErrorOr<object::SymbolRef>
DARMEHABIPrinter.h327 ErrorOr<StringRef> FunctionAtAddress(unsigned Section, uint64_t Address) const;
347 ErrorOr<StringRef> PrinterContext<ET>::FunctionAtAddress(unsigned Section, in FunctionAtAddress()
395 ErrorOr<ArrayRef<uint8_t> > Contents = ELF->getSectionContents(EHT); in PrintExceptionTable()
447 if (ErrorOr<StringRef> Name = FunctionAtAddress(EHT->sh_link, Address)) in PrintExceptionTable()
462 ErrorOr<ArrayRef<uint8_t> > Contents = ELF->getSectionContents(IT); in PrintIndexTable()
496 if (ErrorOr<StringRef> Name = FunctionAtAddress(IT->sh_link, Offset)) in PrintIndexTable()
515 if (ErrorOr<StringRef> Name = ELF->getSectionName(EHT)) in PrintIndexTable()
539 if (ErrorOr<StringRef> SectionName = ELF->getSectionName(IT)) in PrintUnwindInformation()
DARMWinEHPrinter.cpp186 ErrorOr<object::SectionRef>
203 ErrorOr<object::SymbolRef> Decoder::getSymbol(const COFFObjectFile &COFF, in getSymbol()
223 ErrorOr<SymbolRef> Decoder::getRelocatedSymbol(const COFFObjectFile &, in getRelocatedSymbol()
580 ErrorOr<SymbolRef> Symbol = in dumpXDataRecord()
603 ErrorOr<SymbolRef> Function = getRelocatedSymbol(COFF, Section, Offset); in dumpUnpackedEntry()
607 ErrorOr<SymbolRef> XDataRecord = getRelocatedSymbol(COFF, Section, Offset + 4); in dumpUnpackedEntry()
652 ErrorOr<SectionRef> Section = in dumpUnpackedEntry()
669 ErrorOr<SymbolRef> Function = getRelocatedSymbol(COFF, Section, Offset); in dumpPackedEntry()
/external/llvm/include/llvm/Bitcode/
DReaderWriter.h32 ErrorOr<Module *> getLazyBitcodeModule(MemoryBuffer *Buffer,
52 ErrorOr<Module *> parseBitcodeFile(MemoryBuffer *Buffer,
/external/llvm/lib/Bitcode/Reader/
DBitReader.cpp33 ErrorOr<Module *> ModuleOrErr = in LLVMParseBitcodeInContext()
54 ErrorOr<Module *> ModuleOrErr = in LLVMGetBitcodeModuleInContext()
/external/llvm/tools/llvm-dwarfdump/
Dllvm-dwarfdump.cpp69 ErrorOr<std::unique_ptr<MemoryBuffer>> Buff = in DumpInput()
77 ErrorOr<ObjectFile *> ObjOrErr(ObjectFile::createObjectFile(Buff.get())); in DumpInput()
/external/llvm/tools/llvm-size/
Dllvm-size.cpp456 ErrorOr<Binary *> BinaryOrErr = createBinary(file); in PrintFileSectionSizes()
468 ErrorOr<std::unique_ptr<Binary>> ChildOrErr = i->getAsBinary(); in PrintFileSectionSizes()
503 ErrorOr<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in PrintFileSectionSizes()
529 ErrorOr<std::unique_ptr<Binary>> ChildOrErr = i->getAsBinary(); in PrintFileSectionSizes()
579 ErrorOr<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in PrintFileSectionSizes()
605 ErrorOr<std::unique_ptr<Binary>> ChildOrErr = i->getAsBinary(); in PrintFileSectionSizes()
642 ErrorOr<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in PrintFileSectionSizes()
668 ErrorOr<std::unique_ptr<Binary>> ChildOrErr = i->getAsBinary(); in PrintFileSectionSizes()

1234